Re: Hidden Select

Поиск
Список
Период
Сортировка
От Luis Sousa
Тема Re: Hidden Select
Дата
Msg-id 3B25D267.E7967A6E@ualg.pt
обсуждение исходный текст
Ответ на Re: Hidden Select  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Hidden Select  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-sql
How's that ??

How can i define the rule to do that ?


Peter Eisentraut wrote:

> Luis Sousa writes:
>
> > Suposing your example:
> >
> > Now i want to do a query to the view like this:
> >
> > SELECT * FROM C WHERE id=1;
> >
> > I whant to chose the id, but that id isn't in my select list !!!?????
>
> Then you will have to define your view differently.
>
> > > Do you mean like this?
> > >
> > > create table A (id int, content text);
> > > create table B (id int, stuff numeric);
> > > create view C as select A.content, B.stuff from A, B where A.id = B.id;
>
> --
> Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



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

Предыдущее
От: Markus Wagner
Дата:
Сообщение: hiding pg messages in c programs
Следующее
От: "Andrea Suisani"
Дата:
Сообщение: PL/pgsql question