Replacing old tuples on insert

Поиск
Список
Период
Сортировка
От Pradeep Kumar
Тема Replacing old tuples on insert
Дата
Msg-id d7de9af604112321307d378e19@mail.gmail.com
обсуждение исходный текст
Список pgsql-novice
Hi all,

I have not subscribed to this list. However I have registered to the
list with another id of mine which is not working right now.

I have a table as follows -
table TrendData( TrendID bigserial,
                         TrendName varchar(30),
                         .....
                         .....);

Now for this table i want a maximum of only 5000 tuples. After the
maximum is reached the new tuples that are inserted should replace the
older ones. Could anyone help me out in writing the query or a trigger
also would be fine.

Thanx and Regards,
Pradeep

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

Предыдущее
От: Fred Wohlfert
Дата:
Сообщение: Converting file -Invalid data format on input DATE
Следующее
От: "Jeff Flowers"
Дата:
Сообщение: Duplicating A Row