Oraclesql
SELECT column_name(s) FROM table_name WHERE ROWNUM <= number ;
MySQLspa
SELECT column_name(s) FROM table_name LIMIT number;