时间:2021-07-01 10:21:17 帮助过:34人阅读
CREATE OR REPLACE PROCEDURE menuinsert
BEGIN
DECLARE pkno VARCHAR(50);
SELECT menu_pkno INTO pkno FROM menu_info WHERE name='系统设置';
INSERT INTO menu_info
(menu_pkno
,name
,parent_pkno
,stage
,sort
)
VALUES
(UUID(), '项目设置', pkno, '2','1');
END;
EXECUTE menuinsert();