Mysql - Procedure - Error 1054 - Unknown column -
hello have procedure:
begin declare myvar int; set @l_sql = concat('set @result = (insert ',p_table, '(sensor) values(123)'); prepare stmt1 @l_sql; execute stmt1 ; deallocate prepare stmt1; end
when call
call test(id_3174380747);
i have error:
1054 - unknown column 'id_3174380747' in 'field list'
which fault?
Comments
Post a Comment