select right(cast(‘0000000000‘+rtrim(字段) as varchar(20)),7)
declare @i int
declare @qid int
set @i=1
set @qid=100
while @i<50000
begin
insert into Order(orderid,ordername) values(@qid,‘订单名称‘)
set @[email protected]+1
set @[email protected]+1
end
时间: 2024-11-08 22:39:07