sql question
#1

For example i have in mysql database those rows:

ID Name Something
1 laallal feffaff
2 fmweop f,ef[mfe
3 femponf fmepomfop
4 femofmafo fmempfmef
5 feofmofof femopfmf
6 fmeopmf fmepofm

And i need to get rows from 3 to 5 for example. How to do it? I need in my script to get rows only from one specified number to another.
Reply
#2

Simply use the LIMIT clause in your SQL query, for example:

pawn Код:
"SELECT ID, Name FROM `users` LIMIT 3,5"
Reply
#3

Thanks, i will try it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)