Re: CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP

Поиск
Список
Период
Сортировка
От Sandro Dentella
Тема Re: CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP
Дата
Msg-id 200002292255.XAA11967@bluff.ermit.it
обсуждение исходный текст
Ответ на CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP  ("sheila bel" <sheilabel@hotmail.com>)
Список pgsql-general
You may be right that sometime is not that easy to fin documentation, but to
see how CURRENT_TIME works, try:

erm=> select CURRENT_DATE;
  ?column?
----------
29-02-2000
(1 row

I use it (and the others) in default part of create table:
create table aaa (
   who  text  DEFAULT CURRENT_USER,
   when date  NOT NULL DEFALUT CURRENT_DATE
);

The problem is pg_dump transforms CURRENT_DATE in something w/ "'" that can
not be fed back to    "psql db < file"

By
sandro
*:-)

--
Sandro Dentella  *:-)
e-mail: sandro.dentella@mi.infn.it sandro@ermit.it

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

Предыдущее
От: "Steve Wolfe"
Дата:
Сообщение: Re: [GENERAL] "LockRelease: locktable lookup failed, no lock"
Следующее
От: Timothy Grant
Дата:
Сообщение: Real newbie question re documentation for PL/SQL