?? 取前10條記錄.txt
字號:
取前10條記錄中的最大值的sql語句
SELECT TOP 10 id from table order by id desc,取1條就把top 10 改成 top 1 就可以了.
mysql中清空一個表的數據
truncate table 表明
常用幾種數據庫,取前10條記錄的sql語句寫法
access:
select top (10) * from table1 where 1=1
db2:
select column from table where 1=1 fetch first 10 rows only
mysql:
select * from table1 where 1=1 limit 10
sql server:
讀取前10條:select top (10) * from table1 where 1=1
讀取后10條:select top (10) * from table1 order by id desc
oracle:
select * from table1 where rownum<=10
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -