Jump to content

select syntax wrong?


Wetzut

Recommended Posts

hi

 

i\'ve a prob:

 

i need to select some rows from my table. every row got an id.

How can i get all these rows with diffrent ids into one select query?

 

i tried this:

 

select * from `my_table` where `id` = ( \'2\',\'3\',\'6\',\'27\')

 

is it possible to solve this problem in this way or must i try an other one?

 

thx 4 help

Link to comment
https://forums.phpfreaks.com/topic/267-select-syntax-wrong/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.