Gday,
Just wondering if u guys ever had this problem when extracting data from a postgres database, so u dont have to worry bout re formulating and mereging the resultset in php.
I have 2 tables
table name test2
id | name | descr
----+---------+-------
2 | test2 | test2_desc
table name test1
id | name | descr
----+--------+-------
1 | test1 | test1_desc
Now test 1 and test 2 both inherit their ids.
Is there a way to select * from both test1 and test2 with all the records in the resultset being in seperate entries? ie
id | name | descr
----+--------+-------
1 | test1 | test1_desc
2 | test2 | test2_desc
And not
id | name | descr | id | name | descr
----+---------+-------+----+--------+-------
1 | test1 | test1_desc | 2 | test2 | test2_desc
?
Any light would be much appreciated...
Cheers