Re: help with function .. .. date data type

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: help with function .. .. date data type
Дата
Msg-id d8b5708a501568678531711a74983e87@pgedit.com
обсуждение исходный текст
Ответ на help with function .. .. date data type  ("ed" <ntworldnet@netzero.net>)
Список pgsql-novice
On Jun 19, 2005, at 11:39 PM, ed wrote:

> set datestyle to ""US, SQL"";


You have two double quotes here where you need to have single quotes:

set datestyle to ''US, SQL'';


After you fix this, I think you'll run into a few more problems. You
have your function as returning a date, but it looks like you are
trying to return a set of rows. Here is some documentation with
examples:

http://techdocs.postgresql.org/guides/SetReturningFunctions

Documentation note: I can't find this information in the current
documentation. The index entry for "Set Returning Functions" gives this
link:

http://www.postgresql.org/docs/8.0/interactive/functions-srf.html

which seems far less helpful. Have I missed it?


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: help with function .. .. date data type
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Raise Notice