Hi,
I've written a INSERT INTO statement to add a new row to a table.
I want to try and expand on this as the table has 16 colunms, 10 of these I could pull direct from another table but the remaining fields I must insert using VALUES...(variable1, variable2..) etc
Just to add to this, the table columns are labelled differently if that will make a difference.
Can this be done? Can I use SELECT and set some variables to be written to the table in the same row?
I've written a INSERT INTO statement to add a new row to a table.
I want to try and expand on this as the table has 16 colunms, 10 of these I could pull direct from another table but the remaining fields I must insert using VALUES...(variable1, variable2..) etc
Just to add to this, the table columns are labelled differently if that will make a difference.
Can this be done? Can I use SELECT and set some variables to be written to the table in the same row?