我正在尝试在phpmyadmin中的存储过程中执行INSERT INTO .. SELECT ..语句。当我将它作为SQL运行时,该语句非常有效,但是当我使用存储过程时,它会在没有给出错误消息的情况下失败。
存储过程: IN:v_activation_code varchar 15 utf-8
INSERT INTO tbl_users (username, firstname, name, email, password, status, studnr, address, city, dob, gender)
SELECT username, firstname, name, email, password, status, studnr, address, city, dob, gender
FROM tbl_users_non_activated
WHERE activation_code LIKE 'v_activation_code'
提前致谢!