I have a table with an identity column and under a certain condition I want to change the value in the identity column.
Is there a simple sql statement that I can use regardless of the number of columns, that will insert all but the identity column from another entry in the same table.
Basically I don't want to name the columns in case a new column is added at a later date and the code doesn't get updated.
Many thanks
V
Is there a simple sql statement that I can use regardless of the number of columns, that will insert all but the identity column from another entry in the same table.
Basically I don't want to name the columns in case a new column is added at a later date and the code doesn't get updated.
Many thanks
V