If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > are double ANDs legal

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-04, 17:12
KarterJK KarterJK is offline
Registered User
 
Join Date: May 2004
Posts: 2
are double ANDs legal

Hi to all,

Not that familiar with MySQL so is the following statement a legal command

SELECT * FROM users WHERE activated > "0" AND level = "1"' AND anotherlevel = "2"

so can several or up 4 AND statements be added?

If not how would one perform this type of search
Thanks
Reply With Quote
  #2 (permalink)  
Old 05-11-04, 18:06
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
There may be some limit, but it is way more than four!

-PatP
Reply With Quote
  #3 (permalink)  
Old 05-11-04, 18:14
KarterJK KarterJK is offline
Registered User
 
Join Date: May 2004
Posts: 2
thank you very much
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On