2

i have a query like : select id, name from table_name where id is not null limit 10, 20 for mysql; how can i get 10 to 20 records from table in ms access? i know there is no limit keyword and how do i use TOP keyword?

4

1 回答 1

4
SELECT * FROM 
    (SELECT TOP 11 *  FROM 
        (SELECT TOP 20 * FROM table_name ORDER BY 1) 
    ORDER BY 1 DESC)
ORDER BY 1
于 2012-05-10T06:51:10.273 回答