老师写的BEGIN是干嘛用的 不太懂
mysql> CREATE FUNCTION adduser(username VARCHAR(20)) -> RETURNS INT UNSIGNED -> BEGIN -> INSERT test(username) VALUES (username); -> RETURN LAST_INSERT_ID(); -> END -> //
mysql> CREATE FUNCTION adduser(username VARCHAR(20)) -> RETURNS INT UNSIGNED -> BEGIN -> INSERT test(username) VALUES (username); -> RETURN LAST_INSERT_ID(); -> END -> //
2017-11-17
举报