insert only if conditions are met?

Поиск
Список
Период
Сортировка
От Henry Ortega
Тема insert only if conditions are met?
Дата
Msg-id 2bffcc33050831080942f806e1@mail.gmail.com
обсуждение исходный текст
Ответы Re: insert only if conditions are met?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: insert only if conditions are met?  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-sql
Is there a way to insert a record only if a certain<br /> condition is met?<br /><br /> Something like:<br /> insert
intoemployee values('lastname','firstname',8) where<br /> (condition here.. select sum(ofsomething) from xx where
sum(ofsomething)>0)<br /><br /> Is this possible at all with just plain SQL?<br /> 

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

Предыдущее
От: Joost Kraaijeveld
Дата:
Сообщение: Re: [GENERAL] How do I copy part of table from db1 to db2
Следующее
От: Joost Kraaijeveld
Дата:
Сообщение: Re: [GENERAL] How do I copy part of table from db1 to db2