摘要:
declare @rnd nvarchar(50)set @rnd =''while LEN(@rnd)<20 begin set @rnd =@rnd + REPLACE ( CONVERT(nvarchar, RAND ()),'0.','') while LEFT(@rnd,1)='0' se... 阅读全文
摘要:
1. insert into 表(列1,列2) select 列1,列2 from 表2 where....2.select * into 表2 from 表 1where...上面写法标识将表1的数据插入表2中,在运行完毕这条语句后,表2 在执行该SQL 语句钱表2 已经存在了 则报错。即:该跳语... 阅读全文