Insert based in a select

Поиск
Список
Период
Сортировка
От Ezequias Rodrigues da Rocha
Тема Insert based in a select
Дата
Msg-id 55c095e90702241606x4d15b7a9v5b084e575ef23140@mail.gmail.com
обсуждение исходный текст
Ответы Re: Insert based in a select  (Phillip Smith <phillip.smith@weatherbeeta.com.au>)
Список pgsql-sql
Hi list,

Could someone help me with this problem

I have a table like this

Master table

id number
10 9898398398
20 9938378390
30 9873636736

and I want to make an insert into a table with this structure:

Secondary table

id(sequence), master_id
1                    10
2                    20
3                    30

It is possible to make this insert based in all records of my master table ?

Any help would be very welcomed.

Best Regards
Ezequias


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

Предыдущее
От: "Ezequias Rodrigues da Rocha"
Дата:
Сообщение: Change a field to sequence (serial)
Следующее
От: Phillip Smith
Дата:
Сообщение: Re: Insert based in a select