TA貢獻1757條經(jīng)驗 獲得超7個贊
不同的數(shù)據(jù)庫產(chǎn)品有不同的方式。Oracle中設置一個參數(shù)就好了set timing on;mysql能在里面直接看到了。SQLServer中declare @time datetimeset @time=getdate();--這里是查詢語句 如:select count(*) from tb;--下面就是時間差:單位毫秒select datediff(ms,@time,getdate());
TA貢獻1777條經(jīng)驗 獲得超3個贊
select top 1 * from 表 order by newid()
10+年DBA老司機帶你輕松玩轉(zhuǎn) SQL
¥ 48.00
舉報
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號