第一种:Mysql MERGE引擎分表
第二种:union
第三种:select t1.*,t2.*,t3.* from t1,t2,t3 where t1.user_id =? and t2.user_id =? and t3.user_id=?;
本文探讨了Mysql数据库中使用MERGE引擎进行分表的方法,以及通过union和多表联接实现数据联合查询的技术细节。针对特定用户ID,展示了如何从多个表中检索信息。
第一种:Mysql MERGE引擎分表
第二种:union
第三种:select t1.*,t2.*,t3.* from t1,t2,t3 where t1.user_id =? and t2.user_id =? and t3.user_id=?;
1109
1341
658
5092

被折叠的 条评论
为什么被折叠?