|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
MySQL's BETWEEN or similar
Alright, I need a script to load a certain number of rows from a table based on the ids (a field in the table). Basically, I want the script to load ids 500-600 for example. What would be the SQL to do so?
Last edited by PFerrara : October 14th, 2003 at 04:48 PM. |
|
#2
|
|||
|
|||
|
Nevermind, since its a static amound, if I just say select where id is >= to 500 limit 100 ill be fine
|
|
#3
|
|||
|
|||
|
Actually you can use the BETWEEN syntax to achieve that...
select * from myTable where id BETWEEN 500 AND 600
__________________
The deal is not to know everything, but to know the email of the one who does. |
|
#4
|
|||
|
|||
|
oh ok, thanks
I was also doing an id < number AND id >= number, works the same, thanks though |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > MySQL's BETWEEN or similar |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|