sql批量添加数据

时间字段模糊查询 where convert(varchar,PublishTime,120) like '%2010-11-28%'
SELECT TOP 1000 [SMSGUID]
      ,[Mobiles]
      ,[SmsContent]
      ,[SysInfo]
  FROM [DB_DJSMS].[dbo].[send_SMS]
  
declare @i int
set @i=0
while @i<5000000
begin
insert into send_SMS(Mobiles,SmsContent,SysInfo) values('15986547236','深圳有限公司','天猫')
set @i=@i+1
end

 

posted @ 2011-02-12 21:24  蜜雪粮液  阅读(489)  评论(0编辑  收藏  举报