Re: [GENERAL] current_timestamp and default now()

Поиск
Список
Период
Сортировка
От Charles Tassell
Тема Re: [GENERAL] current_timestamp and default now()
Дата
Msg-id 4.2.0.58.19991026111838.0098af00@mailer.isn.net
обсуждение исходный текст
Ответ на Re: [GENERAL] current_timestamp and default now()  (Lincoln Yeoh <lylyeoh@mecomb.com>)
Список pgsql-general
I believe it works if you put now() in single quotes.  EG:

create table test (
         proposetime   datetime not null default 'now()',
)


At 10:07 PM 10/25/99, Lincoln Yeoh wrote:
>At 01:05 PM 25-10-1999 PDT, amy cheng wrote:
> >hi, there,
> >
> >I'm using:
> >
> >create table test (
> >proposetime   datetime not null default now(),
> >)
> >
> >then, I find that I need to make the time uniform through the
> >transaction. Is there a way to use current_timestamp('now')
> >in the create table statement? Seems impossible?
>
>How about reading off the current time (select <somethingblahblah> 'now', I
>can't remember how to do it- not very obvious at first sight) and then
>using that time throughout the transaction?
>
>Cheerio,
>
>Link.
>
>
>************


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

Предыдущее
От: Lincoln Yeoh
Дата:
Сообщение: Re: [GENERAL] How to make a research
Следующее
От: Courtney Thomas
Дата:
Сообщение: initdb error->ld-elf.so.1: Shared object "libpq.so.2" not found