Re: Running Totals and other stuff....

Поиск
Список
Период
Сортировка
От Mike Nolan
Тема Re: Running Totals and other stuff....
Дата
Msg-id 200406012003.i51K3pZA001960@gw.tssi.com
обсуждение исходный текст
Ответ на Re: Running Totals and other stuff....  (Alan Graham <alan.graham@infonetsystems.com.au>)
Ответы Re: Running Totals and other stuff....  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
> Adding a cheque number primary key would work tho'

Depending on the specifics of the application, check number may not
be a  'unique' field.  Automatic bank checks come to mind, on my
monthy statments they tend to always have the same check number or none
at all.

In this case I'd use a serial column.

The best long term solution, IMHO, would be to change postgres so that
it has a unique system column for each record, like Oracle does.
--
Mike Nolan

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to identify which column in a table is the primary key
Следующее
От: zhicheng wang
Дата:
Сообщение: Re: after using pg_resetxlog, db lost