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
Post a Comment