[GENERAL] Functions and Parentheses

Поиск
Список
Период
Сортировка
От Igal @ Lucee.org
Тема [GENERAL] Functions and Parentheses
Дата
Msg-id 8f8d7cea-4ac2-4229-4851-07dcea4209f3@lucee.org
обсуждение исходный текст
Ответы Re: [GENERAL] Functions and Parentheses  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: [GENERAL] Functions and Parentheses  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

Hi,

Is current_date a function?  It's a bit puzzling to me since there are no parentheses after it, i.e.

  SELECT current_date;

And not

  SELECT current_date();  -- syntax error

How come `current_date` has no parenthesis but `clock_timestamp()` does?

Thanks,

Igal Sapir
Lucee Core Developer
Lucee.org

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

Предыдущее
От: Vladimir Nicolici
Дата:
Сообщение: Re: [GENERAL] Strange checkpoint behavior - checkpoints take a long time
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Functions and Parentheses