From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Jim C(dot)" <jlistnews(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgres SQL Syntax |
Date: | 2007-02-02 02:20:34 |
Message-ID: | 13761.1170382834@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Jim C." <jlistnews(at)gmail(dot)com> writes:
> I've a postgres statement that reads:
> CREATE TABLE "channel" (
> "chanid" int NOT NULL default '0',
> "channum" varchar(10) NOT NULL default '',
> "freqid" varchar(10) default NULL,
> "sourceid" int default NULL,
> .
> .
> .
> PRIMARY KEY ("chanid"),
> KEY "channel_src" ("channum","sourceid")
> );
That's not Postgres, and it's not SQL either ... it's a MySQL-ism.
Use a separate CREATE INDEX statement.
> Where can I find good examples of postgres syntax?
In the manual?
http://www.postgresql.org/docs/8.2/interactive/index.html
(adjust URL to match your PG version)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2007-02-02 02:22:16 | Re: How to allow users to log on only from my application not from pgadmin |
Previous Message | Ron Johnson | 2007-02-02 01:36:13 | Re: Problem with Online-Backup |