check row before insert

Поиск
Список
Период
Сортировка
От SG Edwards
Тема check row before insert
Дата
Msg-id 1110890937.4236d9b950ba0@sms.ed.ac.uk
обсуждение исходный текст
Ответы Re: check row before insert  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-novice
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 preset in the database. Is there a way to
do this using an SQL command?


Thanks

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

Предыдущее
От: "Christian Hofmann"
Дата:
Сообщение: Problem: Joining each column of a "one row query" with the result of a "many row query"
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: check row before insert