sql语句循环插入

 DECLARE @i int
SET @i=1
WHILE(@i<10000000)
BEGIN
 SET @i=@i+1
 INSERT into l_loan_guar VALUES(1,1,1)
 INSERT  INTO  l_loan_info (loan_cust_id) VALUES('1')
end

插入char类型的需要cast转换一下

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2022-02-04
  • 2021-11-08
  • 2022-02-22
  • 2022-12-23
猜你喜欢
  • 2021-07-15
  • 2022-03-08
  • 2022-12-23
  • 2021-09-25
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案