Check before insert

Поиск
Список
Период
Сортировка
От SG Edwards
Тема Check before insert
Дата
Msg-id 1110920863.42374e9f75aa1@sms.ed.ac.uk
обсуждение исходный текст
Ответы Re: Check before insert  (Robert Perry <rlperry@lodestonetechnologies.com>)
Список pgsql-interfaces

Hi,

I have a table as follows:

protein_id | name
___________ ______

P04667      Albumin
P45366      Lactoglobulin
....
etc

I have a perl script that will insert data into this table from a file
containing a list of protein_id and names. However, I only want to insert
proteins where they are not already present in the database. Is there a way to
do this using an SQL command?


Thanks



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

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: Using PL/R with 8.0
Следующее
От: Robert Perry
Дата:
Сообщение: Re: Check before insert