SA-MP Forums Archive
sql question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sql question (/showthread.php?tid=345753)



sql question - Kiets - 26.05.2012

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.


Re: sql question - JaTochNietDan - 26.05.2012

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

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



Re: sql question - Kiets - 26.05.2012

Thanks, i will try it.