Filling Missing Primary Key Values

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Filling Missing Primary Key Values
Дата
Msg-id alpine.LNX.2.00.1108111142470.14240@salmo.appl-ecosys.com
обсуждение исходный текст
Ответы Re: Filling Missing Primary Key Values  (Chris Travers <chris.travers@gmail.com>)
Список pgsql-general
   I've a table (from a client, not created here) with a column that should
be the primary key, but not all rows have a value for this attribute. The
column format is VARCHAR(12) and has a variety of values, such as 96-A000672
and 9612-0881 (probably assigned by different analytical laboratories).

   A simple sequence of numbers would do the job of replacing NULL values.
What is the most parsimonious way to replace NULLs with unique values for
this column? I also need to add such values for a new set of data that I'm
in the process of translating from spreadsheet format to the table
structure.

Rich


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

Предыдущее
От: Louis-David Mitterrand
Дата:
Сообщение: FK violation on (emtpy) parent table
Следующее
От: Chris Travers
Дата:
Сообщение: Re: Filling Missing Primary Key Values