Domains and Joins

From: chester c young <chestercyoung(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Domains and Joins
Date: 2003-06-05 21:38:07
Message-ID: 20030605213807.40591.qmail@web12701.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

-- standard setup:
create table t1( c1 int primary key, data text );
create domain dom_c1 int references t1 on delete cascade;
create table t2( c2 int primary key, c1 dom_c1, moredata text );

-- will not work with "using"
create view v1 as select t1.*, t2.moredata
from t1 join t2 using( c1 );

-- will work with "on"
create view v1 as select t1.*, t2.moredata
from t1 join t2 on t1.c1 = t2.c1;

is this right?

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Olbersen 2003-06-06 00:45:24 (long) What's the problem?
Previous Message Chad Thompson 2003-06-05 21:28:44 Re: To ListAdms: Is pgsql-sql operating?