FEDERATED表的left join问题_MySQL
Jun 01, 2016 pm 01:51 PMbitsCN.com
Address 为Innodb表,AppUser 为FEDERATED表,下面的连接查询如果用INNER JOIN 就正常,用left join连接的结果Name全为null,即使有匹配的行,怀疑是mysql的bug
select a.*,b.Name from Address AS a
LEFT JOIN AppUser AS b ON b.AID = a.CheckAdminID
where a.AID=1006948
暂时解决办法:将AppUser改名AppUser1,建个视图AppUser引用AppUser1,结果正常。
bitsCN.com
Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What is the difference between null and NULL in c language

What is the difference between null and undefined

How to implement the statement to view table data in MySQL?

How to set read-only permissions on a table in Oracle database?

Use MySQL to create a recommendation system table to implement the recommendation system function
