Does "USING" work?

From: "Michael Labhard" <ince(at)pacifier(dot)com>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Does "USING" work?
Date: 2002-08-29 14:54:16
Message-ID: aklcg4$tp8$1@main.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Tried this simple test without success. psql says (\h SELECT) that it
should work. Do I have the syntax wrong?

CREATE TABLE a(
x INTEGER PRIMARY KEY
, y INTEGER
);

CREATE TABLE a1(
x INTEGER REFERENCES a(x)
, z INTEGER
);

INSERT INTO a(x, y) VALUES (1, 1);
INSERT INTO a(x, y) VALUES (2, 2);
INSERT INTO a1(x, z) VALUES (2, 2);

SELECT a.x, a.y, a1.z
FROM USING( x )
WHERE a.x = a1.x
;

DROP TABLE a;
DROP TABLE a1;

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2002-08-29 16:18:27 Re: HELP < 63 users
Previous Message davedudd 2002-08-29 14:12:19 !!!!!!80!!!!