I have an application where old records are archived intosource_table(id: bigserial,uname: char,x1: char,x2: char,x3: char,x4: char)
'archive' tables. Occasionally there is a need to copy
some of these old records into the 'active' table.
dest_table(id: bigserial,uname: char,x11: char,x21: char,x31: char,x41: char)
you will do some thing like
insert into dest_table(id,uname,x11,x21) (select id,uname,x1,x2 from source_table)
Shootback if this helps
Regards, Vishal Kashyap
---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster