insert only if conditions are met? - Mailing list pgsql-sql

From Henry Ortega
Subject insert only if conditions are met?
Date
Msg-id 2bffcc33050831080942f806e1@mail.gmail.com
Whole thread Raw
Responses 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>)
List 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 by date:

Previous
From: Joost Kraaijeveld
Date:
Subject: Re: [GENERAL] How do I copy part of table from db1 to db2
Next
From: Joost Kraaijeveld
Date:
Subject: Re: [GENERAL] How do I copy part of table from db1 to db2