Re: [pgsql-novice] Daily digest v1.2917 (11 messages)

From: e-letter <inpost(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: [pgsql-novice] Daily digest v1.2917 (11 messages)
Date: 2011-04-23 07:40:08
Message-ID: BANLkTimXzd3SpeYx+phJ=fURZg3A0ZmF=w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Readers,

A csv file contains data with date and time values in format dd/mm/yy hh:mm:

number,date time,text

So the CREATE command was used:

CREATE TABLE tablename (number int,timestamp,text varchar(150));
ERROR: syntax error at or near ","
LINE 1: CREATE TABLE tablename (number int,timestamp,text varchar(1...

The command SHOW DATESTYLE shows:

SHOW DATESTYLE;
DateStyle
-----------
ISO, DMY
(1 row)

What is my error to prevent import of the date and time values please?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Vibhor Kumar 2011-04-23 08:57:44 Re: [pgsql-novice] Daily digest v1.2917 (11 messages)
Previous Message Tom Lane 2011-04-22 14:39:20 Re: after update trigger ?