I have a table. It's a big table. It has lots and lots of columns (about 150).
I'm copying a row from this table to table B. Then I'm updating a column or two and copying it back into the original table as a new row. I'd like to use SELECT * FROM TABLEA but that would select all of the columns including the KEY column. Then, when I try to copy the row from TABLEB back to TABLEA after I update it, I will get a KEY violation.
How can I do a SELECT * (EXCEPT KEY) FROM TABLEA or something of the like?
Start Free Trial