Re: what is wrong with this SQL? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: what is wrong with this SQL?
Date
Msg-id Pine.BSF.4.21.0109271108570.21569-100000@megazone23.bigpanda.com
Whole thread Raw
In response to what is wrong with this SQL?  (kornale@zdnetmail.com (Alex K.))
List pgsql-general
On 20 Sep 2001, Alex K. wrote:

> create table USERS (
>     ID                decimal(19)    CONSTRAINT primary_usr_oid    PRIMARY KEY,
>     WRITE_COUNT            decimal(19)    NOT NULL,
>     CLASS                decimal(10)    NOT NULL,
>     STATUS                decimal(3)    NOT NULL,
>     USR_LOGIN_USER_ID        varchar2(16)    ,
>     USR_PASSWORD            varchar2(16)    ,
>     USR_PERSON_FIRST_NAME        varchar(32)    ,
>     USR_PERSON_MIDDLE_NAME        varchar(32)    ,
>     USR_PERSON_LAST_NAME        varchar(32)    ,
>     USR_PERSON_SALUTATION        varchar(32)    ,
>     USR_PERSON_SUFFIX        varchar(32)
> );
>
> when i am in psql and i do: \i createUsersTable.sql i get this error:
> psql:createUsersTable.sql:13: ERROR:  parser: parse error at or near "("
>
> What is this?

What is varchar2?  It's probably complaining that it has a type that
isn't there followed by a () size spec and gets confused at that point.



pgsql-general by date:

Previous
From: vitthal
Date:
Subject: Reading the database in RAM
Next
From: "Steve Wolfe"
Date:
Subject: Re: How to make a REALLY FAST db server?