Re: Formatting time for INSERT INTO

From: Ben Chobot <bench(at)silentmedia(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Formatting time for INSERT INTO
Date: 2012-04-25 22:35:57
Message-ID: 8434DAE6-DB47-4062-BA29-F82967976025@silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Apr 25, 2012, at 4:01 PM, Rich Shepard wrote:

> The table has a column 'coll_time' of type time without time zone. New
> rows for the table are in a .sql file and the time values throw an error at
> the colon between hours:minutes. Do time values need to be quoted?

Yes, (date)time values need to be quoted as if they were strings.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2012-04-25 22:40:38 Re: Formatting time for INSERT INTO
Previous Message Rich Shepard 2012-04-25 22:01:49 Formatting time for INSERT INTO