I have a MySQL Procedure that does an insert into a table using a select from another table. Thus
INSERT INTO my_tbl (fld1, fld2, fld3) SELECT fld1, fld2, fld3 FROM tbl_2 where tbl_2.id=33;
That works fine
However, I now need to insert another field into my_tbl from a value I have in a variable (set from a passed in parameter)
Can someone explain the syntax to mix the insert with fields from the select (which I have already) with the additional field that is a variable in the procedure.
Many thanks
Mark