SQL中與top對應的語句是

2021-03-19 18:23:02 字數 573 閱讀 1467

1樓:匿名使用者

你是想顯示從大到小的話就是

select top 10 * from pe_supply where supplytype=1 order by 想要降序的

欄位desc

從小到大的話就是

select top 10 * from pe_supply where supplytype=1 order by 想要升序的欄位

2樓:匿名使用者

可以倒序排列阿

順序的top 10 是前10條

倒序的就是 後10條了

3樓:匿名使用者

正序 select * from 表名 where 條件 order by 排序欄位 asc

倒序 select * from 表名 where 條件 order by 排序欄位 desc

4樓:

select top 10 * from 表a order by 表a的欄位 desc;

5樓:匿名使用者

什麼?不是top嗎?

sql語句刪除表中的多條記錄,SQL語句刪除一個表中的多條記錄

小子 徐三 情天小帥bai豬 謝謝二位du!如果在海量資料 zhi中保留少許資料哪,以原題為dao例,保專留c e f的方法?求教中。屬。2008 05 14 16 51 如果是刪除c e f之外的記錄哪 我來回答 第一種方法 delete from table where date not in ...

怎麼用sql語句,清空Table中的所有記錄

通常的做法是 truncate table 表名,這樣清除表資料的時候順帶把表的主鍵id也會重置為從1開始。另外一種是不帶條件的刪除 delete from 表名 sql怎麼刪除一個表中的所有資料 刪除表資料有兩種方法 delete和truncate。具體語句如下 一 runcate table n...

用SQL語句怎麼刪除表中的所有資料

ls說的我就不談了,我記得還有中刪除方法 drop table database name.schma name table name 其中database name表示資料庫名schma name用於表示模式名稱 table name這個嘛,表名 需要注意的是刪除表的同時,任何以此表為參考表的資料...