Re: [SQL] Best way to delete time stamped data?

Поиск
Список
Период
Сортировка
От Kyle
Тема Re: [SQL] Best way to delete time stamped data?
Дата
Msg-id 3EB510F1.8090708@ccidomain.com
обсуждение исходный текст
Ответы Re: [SQL] Best way to delete time stamped data?  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-general
Josh,

Thanks, even my boss can read the new statement:

DELETE FROM ONLY richtable WHERE age(trxdate) > '90 days';

Your disparaging aside, that is exactly the kind of expression
compaction I was after!  :)

And yeah, I have a deep PERL background, but that's not a bad thing.

-Kyle

Josh Berkus wrote:
> More compact than that ?!?!?!
> Maybe you should go into Perl, instead of SQL -- I think the one-liners would
> suit you.
>
> You can use the age() function, but all that funciton does is the same
> calculation you have above.


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

Предыдущее
От: Shridhar Daithankar
Дата:
Сообщение: Re: PostgreSQL Inquiry
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: [SQL] Best way to delete time stamped data?