且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过联接来自Spring Data JPA中不同数据库的2个表来运行本机查询?

更新时间:2022-12-31 14:38:33

如果您的表属于同一服务器(不考虑数据库(相同或不同)),则可以相互连接. 但是,如果它们属于不同的服务器,则MySql会将其支持为 FEDERATED Engine .您可以查看此问题以了解更多详细信息.

If your tables are of same server (irrespective of databases (same or differ)) then it is possible to join with eachother. But if they belong different servers then it supports by the MySql as FEDERATED Engine . You can have look to this question for more details.