脚本:
create FUNCTION adduser (username VARCHAR(20))
returns int UNSIGNED
BEGIN
INSERT test(username) VALUES(username);
return LAST_INSERT_ID();
END
相关分类