Re: last row of table after csv import

Поиск
Список
Период
Сортировка
От Henry Drexler
Тема Re: last row of table after csv import
Дата
Msg-id CAAtgU9SSxYFWCfgaA6Jyot0xYoekr=x+=DzAR8mULi7LAJoqhA@mail.gmail.com
обсуждение исходный текст
Ответ на last row of table after csv import  (e-letter <inpost@gmail.com>)
Ответы Re: last row of table after csv import
Список pgsql-novice
On Mon, Oct 17, 2011 at 6:06 PM, e-letter <inpost@gmail.com> wrote:
Readers,

After csv of data, is there a command to navigate to the last row of
data in the database table, after import of csv data? The csv file is
not sorted, so the request is to view the last row after import. Now
after import, the keyboard key 'z' is pressed down until the last row
is shown in the command terminal!

Thanks in advance.

 
perhaps first do a 
select 
count(*) from table

then 

select
*
from
table
limit 1 offset (the result of your count(*) -1)

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

Предыдущее
От: Josh Kupershmidt
Дата:
Сообщение: Re: last row of table after csv import
Следующее
От: e-letter
Дата:
Сообщение: Re: last row of table after csv import