Inheritance issues displaying tables

Inheritance issues displaying tables

am 31.05.2003 22:33:54 von pknoob

I have three tables that look like this:

CREATE TABLE episodes(
id int,
name text,
)
);

CREATE TABLE p2p(
p2p varchar
) INHERITS (episodes);


CREATE TABLE irc(
server_name varchar
) INHERITS (episodes);

When I try :
$squery="SELECT * FROM episodeirc,episodep2p";
$squery=pg_query($squery);
while($row=pg_fetch_array($squery,NULL,PGSQL_ASSOC))
{
echo " " . $row["name"] . "
" . $row["id"] . "
" . $row["p2p"] . "
" . $row["server_name"] . "";}

the problem is that it prints results from the episodep2p table only. how can
I make it print results from both tables?

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly