DELIMITER //;
CREATE FUNCTION adduser (username VARCHAR(30))
RETURNS int UNSIGNED
BEGIN
INSERT INTO test (username) VALUES (username);
RETURN LAST_INSERT_ID();
END
//
CREATE FUNCTION adduser (username VARCHAR(30))
RETURNS int UNSIGNED
BEGIN
INSERT INTO test (username) VALUES (username);
RETURN LAST_INSERT_ID();
END
//
2015-08-02