資料庫中查前幾筆資料語法 « Minying's Blog

資料庫中查前幾筆資料語法 « Minying's Blog

瀏覽:1459
日期:2024-08-11
各資料庫中,查詢前幾筆資料語法有所差異。 DB2: Select * From Table1 Order By Column1 Fetch First 10 Row Only SQL Server: Select Top 10 * From Table1 Order By Column1 MySQL: Select * From Table1 Limit 10 Select * From Table Limit 10,5 查詢第11筆 ......看更多