SQL Query - Mailing list pgsql-sql

From beyaNet Consultancy
Subject SQL Query
Date
Msg-id 051D7AFC-7D05-11D8-AC21-0003938366A4@ntlworld.com
Whole thread Raw
Responses Re: SQL Query
List pgsql-sql
Hi,
I am trying to create a query which basically goes along the lines of:

INSERT INTO tableX ( COL1, COL2 ) VALUES ( x, y ) where COL1 !=x and
COL2 !=Y

So, insert a record into tableX where there is not already an existence
of COL1 and COL2

Can this be done as I have described or is there a more efficient way
to do this?

many thanks

Peter

pgsql-sql by date:

Previous
From: Guy Fraser
Date:
Subject: Re: [GENERAL] PHP or JSP? That is the question.
Next
From: Bruno Wolff III
Date:
Subject: Re: SQL Query