I have two databases and each database has myTable like the above.Code:myTable in db1 (id) db1city (1) Rome (2) London (5) Paris (7) Berlin myTable in db2 (id) db2city (1) Seoul (4) Tokyo (6) Peking
I made the following would-be code for getting my target result below.
The would-be code above doesn't work correctly.Code:would-be code <cfquery datasource='db1,db2' name='db2'> select id,city from db1myTable,db2mytable order by id </cfquery> target result (1) Rome (1) Seoul (2) London (4) Tokyo (5) Paris (6) Peking (7) Berlin
How can I get my target result?







Bookmarks