Extract a subset of columns
The schema command file in this example extracts a table test1:tlr from
the most recent backup of dbspace1 and places a subset of the
data into the table test1:new_dest
database test1;
create table tlr (
a_serial serial,
b_integer integer,
c_char char(20),
d_decimal decimal
) in dbspace1;
create table new_dest (
X_char char(20),
Y_decimal decimal,
Z_name char(40)
) in dbspace2;
insert into new_dest (X_char, Y_decimal) select c_char,d_decimal from tlr;