Re: SQL Query

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: SQL Query
Дата
Msg-id 20040323204630.GA30663@wolff.to
обсуждение исходный текст
Ответ на SQL Query  (beyaNet Consultancy <beyanet@ntlworld.com>)
Список pgsql-sql
On Tue, Mar 23, 2004 at 20:02:32 +0000, beyaNet Consultancy <beyanet@ntlworld.com> wrote:
> 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

Pretty much the same question was asked on the admin list (though this
list is more appropiate) earlier today. The answer I gave is at:
http://archives.postgresql.org/pgsql-admin/2004-03/msg00305.php


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

Предыдущее
От: beyaNet Consultancy
Дата:
Сообщение: SQL Query
Следующее
От: Chester Kustarz
Дата:
Сообщение: move forward 0 from foo;