Oct 9, 2006 #1 lcs01 Programmer Aug 2, 2006 182 US I want to write a sql like this: Code: select * from mytable limit 10 order by pid I know the above sql has a syntax error, i.e. you can not use 'limit' together with 'order by'. But, is there a way to perform this kind of task? Many thanks!
I want to write a sql like this: Code: select * from mytable limit 10 order by pid I know the above sql has a syntax error, i.e. you can not use 'limit' together with 'order by'. But, is there a way to perform this kind of task? Many thanks!
Oct 9, 2006 1 #2 TonyGroves Programmer Aug 13, 2003 2,389 IE Put the "limit" after the "order by". Upvote 0 Downvote