我有一个这样的存储过程:
SET @query = CONCAT('insert into tblcommodity (id , idname , count)values (',p1, p2,p3,')');
PREPARE stmt FROM @query;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
但是当我想运行它时,它有这个错误:
> Procedure execution failed 1136 - Column count doesn't match value
> count at row 1
另一件事是,当我只运行插入代码时,它就会运行!
请帮助我。