Truncating 'now' to seconds

Поиск
Список
Период
Сортировка
От Nathan Schile
Тема Truncating 'now' to seconds
Дата
Msg-id 40A4E1C6.6040206@shiftyeyes.com
обсуждение исходный текст
Ответы Re: Truncating 'now' to seconds  (jseymour@LinxNet.com (Jim Seymour))
Список pgsql-general
I am trying to run the following query:

INSERT INTO public."Bug Status" ("Tracking Number", "Assigned Analyst",
status, "Changed By", "Updated Date") VALUES
(111111111, 'NS', 'Reported', 'NS', DATE_TRUNC('second', 'now'));

I recieve the following error:

ERROR:  unterminated string
CONTEXT:  compile of PL/pgSQL function "update_status" near line 3

I am basically wanting to truncate the timestamp to seconds, so that I
don't get milliseconds.  Does anyone know what I am doing wrong?  Thanks

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

Предыдущее
От: Liew Kok Ming
Дата:
Сообщение: Visual C++ connect to postgresql
Следующее
От: vikram_147@yahoo.com (Vikram)
Дата:
Сообщение: Unable to run testlibpq.c program