I have to insert a variable value into a table. What is the right syntax? I tried with
set @variable= @variable1+@variable2
INSERT INTO table (column) VALUES(@variable);
INSERT INTO table (column) VALUES('variable');
but field is not populated. I checked that the variable exists.
column
s type - you have the correct syntax for inserting string literals and numerics. but need to useset @variable=@variable1+@variable2
also these other variables need to be set previously