Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select info from all databases

Status
Not open for further replies.

cymerman

MIS
Jan 9, 2007
16
US
Hi All,

I have an old version of informix.
I do have 8 different databases in the same system. The table structure is all the same across the system.
How do I select info from one particular table in all the different databases ?
I know that in SQL Server you can do something like:


SELECT * FROM TABLENAMEall

Thanks
 
Hi,

you can give the database with the select:

Code:
select * from database1:mytable
union all
select * from database2:mytable
union all
select * from database3:mytable
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top