Re: [SQL] Select & Tables X Select & Views

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: [SQL] Select & Tables X Select & Views
Дата
Msg-id 20000218122631.C12742@rice.edu
обсуждение исходный текст
Ответ на Select & Tables X Select & Views  (Rodrigo Rezende <Rodrigo.Rezende@hortolandia.marelli.it>)
Список pgsql-sql
Rodrigo - 
Are you reporting a bug, or looking for advice? Here's how it works
for me:

I ran this script:

create table taba (a1 int);
create table tabb (b1 char);
insert into taba (1);
insert into taba values (1);
insert into taba values (2);
insert into taba values (3);
insert into tabb values ('a');
insert into tabb values ('b');
create view viewb as select * from tabb;

And here are the tests:
test=> select version();
version                                                       
--------------------------------------------------------------
PostgreSQL 6.5.0 on i686-pc-linux-gnu, compiled by gcc 2.7.2.3
(1 row)

test=> select * from taba, tabb;
a1|b1
--+--1|a 2|a 3|a 1|b 2|b 3|b 
(6 rows)

test=> select * from taba, viewb;
a1|b1
--+--1|a 2|a 3|a 1|b 2|b 3|b 
(6 rows)

test=> 

So, it looks like your view definition is broken, or your using an
old version of pgsql.

Ross
-- 
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> 
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005


В списке pgsql-sql по дате отправления:

Предыдущее
От: Rodrigo Rezende
Дата:
Сообщение: Select & Tables X Select & Views
Следующее
От: "Mohit Marwaha"
Дата:
Сообщение: