Re: Comments on tables

Поиск
Список
Период
Сортировка
От Vibhor Kumar
Тема Re: Comments on tables
Дата
Msg-id 3C1983E6-9F77-4F98-BDE4-E0C23F390F89@enterprisedb.com
обсуждение исходный текст
Ответ на Comments on tables  (pasman pasmański <pasman.p@gmail.com>)
Список pgsql-general
On Nov 10, 2010, at 2:55 PM, pasman pasmański wrote:

> How to add comment on table with calculated value ?
>
> COMMENT ON TABLE test IS 'Updated ' || current_date;


You can create function to do that.

Or

If you are using PG9.0, then DO would help you, as given below:
do $$
Declare
t text;
begin
t:='COMMENT ON TABLE TEST_COPY IS '||''''||'TEST WITH '||current_date||'''';
execute t;
end;
$$ language plpgsql;

Thanks & Regards,
Vibhor Kumar



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

Предыдущее
От: Bjørn T Johansen
Дата:
Сообщение: Re: Does not use index on query using "field is null"?
Следующее
От: Jason
Дата:
Сообщение: PostgreSQL 8.2.3