honghong75042
DROP PROCEDURE IF EXISTS test_insert;

DELIMITER ;; 
CREATE PROCEDURE test_insert () 
BEGIN 

DECLARE i int;
set i=14;
WHILE i<30 
DO 
    insert into student(name,age,nianji,phone) values(CONCAT(\'hh\',i),CONCAT(i,\'\'),\'1\',\'123\');
SET i=i+1; 
END WHILE ; 
commit; 

END;; 

call test_insert () ;

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-12-25
  • 2021-12-25
  • 2021-12-23
  • 2021-09-28
猜你喜欢
  • 2022-01-02
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-12-25
  • 2021-07-10
  • 2021-09-29
相关资源
相似解决方案