Re: insert into help

Поиск
Список
Период
Сортировка
От venkat
Тема Re: insert into help
Дата
Msg-id AANLkTinkXOV-MT_FaCKMtFss5T+q_gbG+y6Pz5vb7oK6@mail.gmail.com
обсуждение исходный текст
Ответ на insert into help  (Nicholas I <nicholas.domnic.i@gmail.com>)
Список pgsql-sql
HI,
  

 Please go through 

Thanks and Regards,

Venkat

On Wed, Sep 22, 2010 at 1:02 PM, Nicholas I <nicholas.domnic.i@gmail.com> wrote:
Hi,

 i have two tables,
---------------------------------------------------------------
table1

id type serial, name varchar;

--------------------------------------------------------------
table 2

name varchar;

---------------------------------------------------------------

i want to insert the values of table 2 into table 1, with automatic id's.

insert into table1(select * from table2);

is not working, how can i append the data to table 1 with auto incremented or nextval.

-Nicholas I

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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: insert into help
Следующее
От: "Steve"
Дата:
Сообщение: Re: Question about PQexecParams