When you do a mySQL SELECT querey can you do two WHEREs?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
MattSharp
Forum Commoner
Posts: 62
Joined: Wed Apr 24, 2002 2:25 pm

When you do a mySQL SELECT querey can you do two WHEREs?

Post by MattSharp »

Can I do WHERE blah=blah AND blah=blah?

Like can you check for two values?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

yes
AND, OR, NOT, IN.....
the whole pallet is available with or without braces ;)
Post Reply