Re: Advice with an insert query

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Advice with an insert query
Дата
Msg-id kosqgh$rqj$1@ger.gmane.org
обсуждение исходный текст
Ответ на Advice with an insert query  (JORGE MALDONADO <jorgemal1960@gmail.com>)
Список pgsql-sql
JORGE MALDONADO, 07.06.2013 15:58:
> I need to insert records into a table where one value is fixed and 2 values come from a SELECT query, something like
thefollowing example:
 
> 
> INSERT INTO table1 fld1, fld2, fl3
> VALUES value1, (SELECT fldx, fldy FROM table2)
> 
> Is this valid?
> 
> Respectfully,
> Jorge Maldonado


INSERT INTO table1 (fld1, fld2, fl3)
SELECT value1, fldx, fldy 
FROM table2






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

Предыдущее
От: Oliver d'Azevedo Cristina
Дата:
Сообщение: Re: Advice with an insert query
Следующее
От: rawi
Дата:
Сообщение: Index Usage and Running Times by FullTextSearch with prefix matching