Waraxe IT Security Portal
Login or Register
September 8, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 76
Members: 0
Total: 76
Full disclosure
[SYSS-2024-030]: C-MOR Video Surveillance - OS Command Injection (CWE-78)
[SYSS-2024-029]: C-MOR Video Surveillance - Dependency on Vulnerable Third-Party Component (CWE-1395)
[SYSS-2024-028]: C-MOR Video Surveillance - Cleartext Storage of Sensitive Information (CWE-312)
[SYSS-2024-027]: C-MOR Video Surveillance - Improper Privilege Management (CWE-269)
[SYSS-2024-026]: C-MOR Video Surveillance - Unrestricted Upload of File with Dangerous Type (CWE-434)
[SYSS-2024-025]: C-MOR Video Surveillance - Relative Path Traversal (CWE-23)
Backdoor.Win32.Symmi.qua / Remote Stack Buffer Overflow (SEH)
HackTool.Win32.Freezer.br (WinSpy) / Insecure CredentialStorage
Backdoor.Win32.Optix.02.b / Weak Hardcoded Credentials
Backdoor.Win32.JustJoke.2 1 (BackDoor Pro) / Unauthenticated Remote Command Execution
Backdoor.Win32.PoisonIvy. ymw / Insecure Credential Storage
[SYSS-2024-024]: C-MOR Video Surveillance - Improper Access Control (CWE-284)
[SYSS-2024-023]: C-MOR Video Surveillance - SQL Injection(CWE-89)
[SYSS-2024-022]: C-MOR Video Surveillance - Cross-Site Request Forgery (CWE-352)
[SYSS-2024-021]: C-MOR Video Surveillance - Persistent Cross-Site Scripting (CWE-79)
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> MySql -> Search on several tables in SQL
Post new topicReply to topic View previous topic :: View next topic
Search on several tables in SQL
PostPosted: Mon Sep 15, 2008 10:47 am Reply with quote
str0xo
Beginner
Beginner
Joined: Sep 15, 2008
Posts: 3




Good morning,

I have a problem and I am currently blocked the above, I hope any help , my problem is as follows:

I must write PL / SQL, requette SQL which makes a search (a search engine) on several tables (at least 8 => several joints) on fields that can be NULL, empty, full ... I do not recover as the list of id of the table (ROOT), this is how I have done, but it did not work
Quote:

SELECT tableRoot.Id
FROM table_root tableRoot,
table_fille1 fille1,
table_fille2 fille2,
table_fille3 fille3,
table_fille4 fille4,
...
WHERE
tableRoot.champRoot1 LIKE '%i__var1%' AND
tableRoot.champRoot2 = i__var2 AND
tableRoot.champRoot3 = i__var3 AND
fille1.champfille1_1 = i__var4 AND
fille1.champfille1_2 = i__var5 AND
fille2.champfille2 LIKE '%i__var6 %' AND
fille3.champfille3 LIKE '%i__var7 %' AND
fille4.champfille4_1 LIKE '%i__var8 %' AND
fille4.champfille4_2 LIKE '%i__var9 %' AND
...
-- Inner joins
fille1.id = tableRoot.fk_id_1 AND
fille2.id = tableRoot.fk_id_2 AND
fille3.id = tableRoot.fk_id_3 AND
fille4.id = tableRoot.fk_id_4
...;


thank's Cool
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Mon Sep 15, 2008 10:56 am Reply with quote
nuckel
Active user
Active user
Joined: Mar 25, 2008
Posts: 28




Good morning

can you give a little more detail?
what does not?
a small example can be reduced to a child table to show us what you really want and what you problem?

Thanks
View user's profile Send private message
PostPosted: Mon Sep 15, 2008 11:02 am Reply with quote
str0xo
Beginner
Beginner
Joined: Sep 15, 2008
Posts: 3




hi Thank's for your response

Already the first question that arises: Is what I'm on the right path, is this the way forward? y'aurais no problems fall performance, if information does not exist at a table which has been doing a join, it will not affect the requette short, you see problems in this method? Rolling Eyes
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Mon Sep 15, 2008 11:08 am Reply with quote
nuckel
Active user
Active user
Joined: Mar 25, 2008
Posts: 28




hi,

Already performance level will require that you use indexes

According without more information, it is difficult to say any more worry.
View user's profile Send private message
PostPosted: Mon Sep 15, 2008 11:16 am Reply with quote
dzH
Regular user
Regular user
Joined: Mar 15, 2008
Posts: 17




nuckel wrote:
hi,

Already performance level will require that you use indexes

According without more information, it is difficult to say any more worry.



Indexes with like '%...', no interest!!!! Exclamation
View user's profile Send private message
PostPosted: Fri Sep 19, 2008 12:34 pm Reply with quote
0xbadfaceX
Regular user
Regular user
Joined: Aug 01, 2008
Posts: 12
Location: .bashrc$>




str0xo wrote:
hi Thank's for your response

Already the first question that arises: Is what I'm on the right path, is this the way forward? y'aurais no problems fall performance, if information does not exist at a table which has been doing a join, it will not affect the requette short, you see problems in this method? Rolling Eyes


look at : y'aurais . . . french???

if you want to send a translated text to someone or use it for your correspondence, explain that you always use a translator ... Laughing because there, you writing as the noobs i can not understand what you talked about because your language is very bad

and i think that "str0xo", "Nuckel", "dzH" are the same person by different nickname, the IP used. . Wink

see u . .

_________________
,
View user's profile Send private message Visit poster's website
Search on several tables in SQL
www.waraxe.us Forum Index -> MySql
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.120 Seconds