04 2022 档案

摘要:declare @id int --定义接收变量 declare @name nvarchar(20) --定义接收变量 declare type_cur cursor static --定义游标[static:静态游标] for select id,type_name from ST_Type o 阅读全文
posted @ 2022-04-25 08:55 iHey 阅读(44) 评论(0) 推荐(0)
摘要:还是使用newid()函数 比如下面是随机生成2000年2月1日至4日8:00到20:00之间的时间 select '2000-02-'+replace(str(1+abs(checksum(newid())%4),2),' ','0')+' '+str(8+abs(checksum(newid() 阅读全文
posted @ 2022-04-24 18:10 iHey 阅读(205) 评论(0) 推荐(0)