Re: Copying rows between tables?

Поиск
Список
Период
Сортировка
От Sai Hertz And Control Systems
Тема Re: Copying rows between tables?
Дата
Msg-id 40043DD4.4090802@sancharnet.in
обсуждение исходный текст
Ответ на Copying rows between tables?  (Steve Wampler <swampler@noao.edu>)
Список pgsql-sql
Dear Steve Wampler

>I have an application where old records are archived into
>'archive' tables.  Occasionally there is a need to copy
>some of these old records into the 'active' table.
>  
>
source_table(id: bigserial,uname: char,x1: char,x2: char,x3: char,x4: char)
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



В списке pgsql-sql по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: can insert 'null' into timestamp type field from command
Следующее
От: beyaRecords - The home Urban music
Дата:
Сообщение: Configure issues