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? Link to comment https://forums.phpfreaks.com/topic/10198-several-query-values-in-where/ 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] Link to comment https://forums.phpfreaks.com/topic/10198-several-query-values-in-where/#findComment-38004 Share on other sites More sharing options...
aeris130 Posted May 22, 2006 Author Share Posted May 22, 2006 Many thanks. :D Link to comment https://forums.phpfreaks.com/topic/10198-several-query-values-in-where/#findComment-38005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.