How to create multiple database connections for different databases in java

前端 未结 6 1076
心在旅途
心在旅途 2020-12-25 08:31

I have an application which uses four databases in different geographical locations. All the databases contains same tables and only the database name is different according

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-25 08:54

    The Ideal way to achieve this is by using a multi-dimensional system like OLAP. But see if you can create a view out of those databases. Then you just need to query the view (i.e. just a single database connection). Also you can still use multiple database connections if you want.

提交回复
热议问题