Previous N records about the database tab

zhaozj2021-02-16  53

Introduction to the writing of various databases recorded in the N-note record ...

Author: CCBZZP

1. ORACLE SELECT * FROM TABLE1 WHERE ROWNUM <= N 2. INFORMIX SELECT FIRST N * FROM TABLE1 3. DB2 SELECT * ROW_NUMBER () OVER (ORDER BY COL1 DESC) AS ROWNUM WHERE ROWNUM <= N or SELECT COLUMN FROM TABLE FETCH FIRST N rows only 4. SQL Server SELECT TOP N * from table1 5. Sybase set rowcount n gosect * from table1 6. mysql select * from table1 limited n 7. FoxPro Select * Top n from table Order by Column

转载请注明原文地址:https://www.9cbs.com/read-24772.html

New Post(0)