create procedure test_insert()
BEGIN 
DECLARE y TINYINT DEFAULT 1;
WHILE y<31
DO
insert into code_library (codeno,itemno,itemname,sortno,isinuse) values('year',1991+y,1991+y|'年',100+y,'1'); 
SET y=y+1; 
END WHILE ; 
commit; 
END;

