During my job, I usually have to copy rows while changing their primary key and giving them a new stamp and maybe changing the foreign key.
The problem is I don't want to type all the column names while doing;
insert into table_name
select pk_seq.nextval,
'foreign-key',
col3,
col4...col51
from table_name
where pk_id = "original_primary_key"
And if i do * in the select statement i won't be able to update the first 2 columns...
Is there any way to do how I want to do it?