spring - mysql 如何实现多表跨库联合查询?
PHPz
PHPz 2017-04-17 15:43:30
0
1
481
PHPz
PHPz

学习是最好的投资!

reply all(1)
巴扎黑

There are also many queries related to cross-database tables in my project, which are very simple to implement:

    select 
        a.uid  
    from 
       ucenter.user a , database user_profile b 
   where a.uid = b.uid;

Just add the library name in front of the table.

This is an example of xml in my project. The project uses springmvc, and the persistence layer framework is mybatis:

Data source configuration of the project:

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!