* [EMAIL PROTECTED] > I like to know the sintax to do a similar select in mysql (this come from > db2): > > select * from tabella where rrn(tablename) > 50 limit 10 > > the mean is to select ten records from 50 to 60, > > any equivalent with mysql ?
mysql does not have the rrn() function, but if you have a primary key called 'id', this should work: select * from tabella order by id limit 50,10; -- Roger --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php