regarding select into

Поиск
Список
Период
Сортировка
От surabhi.ahuja
Тема regarding select into
Дата
Msg-id 967CFC4343BF2A4DAFACD026D33DC85118EC70@jal.iiitb.ac.in
обсуждение исходный текст
Ответы Re: regarding select into  (Alban Hertroys <alban@magproductions.nl>)
Список pgsql-general
 Hello,
 
Is it not possible to write such an sql statement:
 
select ser into val1, count(*) into val2 from tab1 where id = $1;
 
do i need to perform the 2 selects separately ..wont that impact the performance?
 
in the table tab1, id is the primary key.
 
Thank You
 
Regards
Surabhi Ahuja

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

Предыдущее
От: CSN
Дата:
Сообщение: Re: Function keys cause psql to segfault
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: Slow connection to the database