一、MySQL有一个MERGE存储引擎是专门做这个事情的,借这篇博文了解:Mysql MERGE引擎分表
二、union
三、select A.*,B.*,C.* from a1 A, a2 B,a3 C where A.user_id =? and B.user_id =? and C.user_id=?;
一、MySQL有一个MERGE存储引擎是专门做这个事情的,借这篇博文了解:Mysql MERGE引擎分表
二、union
三、select A.*,B.*,C.* from a1 A, a2 B,a3 C where A.user_id =? and B.user_id =? and C.user_id=?;