Mysql - 过程 - 错误1054 - 未知列

时间:2013-05-08 19:53:43

标签: mysql procedure mysql-error-1054

你好我有这个程序:

BEGIN
declare myvar int;
SET @l_sql = CONCAT('set @result = (INSERT INTO ',p_table, '(Sensor) Values(123)');
PREPARE stmt1 FROM @l_sql;
EXECUTE stmt1 ;
DEALLOCATE PREPARE stmt1;
END

当我打电话

call test(Id_3174380747);

我有这个错误:

 1054 - Unknown column 'Id_3174380747' in 'field list'

哪个是错?

0 个答案:

没有答案