Is there a way I can tell my MySQL query to start from a specific id and end at another using MySQL?
A:
use where id between x and y
http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#operator_between
update according to the remark
one option : where id =x or id = y
.
second option : where id in (x,y)
Haim Evgi
2010-08-19 07:58:24
what if I just want what those two ids are related too and nothing else.
helloWORLD
2010-08-19 08:00:57
one option : where id =x or id = y . 2 option : where id in (x,y)
Haim Evgi
2010-08-19 08:03:37
its help you ??
Haim Evgi
2010-08-19 08:10:57
yeah somewhat thanks.
helloWORLD
2010-08-19 08:15:16