In Mysql I don't believe it\'s possible. If you\'re using PHP, you\'ll need to code 2 separate connections / queries.
In Oracle (and I think DB2 although memory is a little sketchy), you can. In Oracle you need to create a remote database link.
Don\'t know about Postgress.
Cheers
Justin