你好我有这个程序:
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'
哪个是错?