insert into table with nest query

Поиск
Список
Период
Сортировка
От e-letter
Тема insert into table with nest query
Дата
Msg-id CAET1fe5dXJGcvFFV=RzOQ3q+d-vVXK4k0ARb8QbA47Vyuv43nA@mail.gmail.com
обсуждение исходный текст
Ответы Re: insert into table with nest query  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-novice
Readers,

table1
column1,column2
value1,value2

table2
column2,column3
value2, value3

table3
column1,column2,column3
value1,value2,value3

When value3 is first entered into table2, what are the correct
commands for value2 (in table2) and value1 (in table1) to be selected
for insertion into table 3?

INSERT INTO table3 SELECT ... WHERE value3='...';

The conceptual difficulty is how to use nested query correctly, or is
there a better method? Thank you.



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

Предыдущее
От: Johan Antonissen
Дата:
Сообщение: Re:
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: insert into table with nest query