mysql 多表查询
2015-06-15 00:00
232 查看
select count(*) from 99_wuguan.wg_buildings, 99_wuguan.wg_building_enormous, 99_wuguan.wg_building_unit, 99_wuguan.wg_building_house where 99_wuguan.wg_buildings.Id = 1 and 99_wuguan.wg_buildings.Id = 99_wuguan.wg_building_enormous.building_id and 99_wuguan.wg_building_enormous.Id = 99_wuguan.wg_building_unit.enormous_id and 99_wuguan.wg_building_unit.Id = 99_wuguan.wg_building_house.unit_id
一个基本的4表查询。
Mysql 多表联合查询效率分析及优化
http://blog.csdn.net/hguisu/article/details/5731880相关文章推荐
- mysql 字符串转整形
- mysql 添加/删除主键
- mysql_close()与mysql_free_result()的区别
- mysql错误代码对照表较完整 mysql_errno()
- MySQL 在 LIMIT 条件后注入
- mysql无法远程连接
- MySQL各种日期类型与整型(转)
- Mysql常用命令
- mysql 命令行基本操作
- MySQL 主从复制
- Mysql error 1217
- mysql新手学习
- 【mysql5.6】连接vs2010
- 再续mysql编码问题
- MySQL的主主同步
- mysql操作
- 解决VS2010连接MySQL出现的问题
- mysql分表,分区的区别和联系
- MYSQL--事务处理
- 从 mysql 客户端导出数据库 mysqldump