mysql - Selecting multiple rows at once when I know what ID's I want -


i have table 2 columns...id , content.

is there way select data multiple rows @ once mysql database when know row id's want retrieve data from.

possibly putting content column results array or sort if best way. trying prevent ton of sql query's. there 2 columns, id , content column.

any input great.

you can use in statement achieve this:

select * mytable id in (1,2,3,4) 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -