文章詳情頁
關于sql的小玩意 sql server添加數(shù)據(jù)
瀏覽:136日期:2023-11-01 12:59:03
查詢時間:
declare @d datetimeset @d=getdate()select * from conference where; type_code='0' and con_code=1 order by t_date descselect [語句執(zhí)行花費時間(毫秒)]=datediff(ms,@d,getdate())
呵呵; 關于數(shù)據(jù)庫添加數(shù)據(jù)~~
declare @m int set @m=1 while @m<=20 begininsert into conference(charge) values(cast(@j as varchar(2))); set @m=@m+1 end
更新什么的道理相同 呵呵~ 剛學會的~
http://blog.csdn.net/haoyuzhou009/archive/2007/01/30/1498055.aspx
排行榜
