aeris130 Posted May 22, 2006 Share Posted May 22, 2006 [code]SELECT * FROM table WHERE id ='4'"[/code]This selects every column with id 4. But what if I want to select all columns with id 4,5 and 6 at the same time? Quote Link to comment Share on other sites More sharing options...
urbandsigns.com Posted May 22, 2006 Share Posted May 22, 2006 [code]SELECT * FROM table WHERE (id ='4' or id ='5' or id ='6)'[/code] Quote Link to comment Share on other sites More sharing options...
aeris130 Posted May 22, 2006 Author Share Posted May 22, 2006 Many thanks. :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.