Re: COPY TABLE TO

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: COPY TABLE TO
Дата
Msg-id 15966.1072105960@sss.pgh.pa.us
обсуждение исходный текст
Ответ на COPY TABLE TO  ("Paul Punett" <paul.punett@shazamteam.com>)
Список pgsql-hackers
"Paul Punett" <paul.punett@shazamteam.com> writes:
> I need count as the first record? Any suggestions please ?

SQL does not guarantee any particular ordering of rows in a table.
You cannot do what you're doing and expect it to be reliable.

You could do something like this: add a sequence-number column to your
table and then do "SELECT ... ORDER BY seqno" to extract the data in
a controlled order.
        regards, tom lane


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