要把2个表关联起来查询?
select tbl1.mid,tbl1.tim,tbl2.mid,tb2.timfrom tbl1,tbl2where tbl1.mid = tbl2.mid and tbl1.mid = 9order by tbl1.tim 还是要把2个表的查询结果放到一起?
select mid,tim from tbl1 where mid = 9unionselect mid,tim from tbl2 where mid = 9order by tim
如果觉得《mysql订单关联查询 mysql同时查询两张表 – 数据库 – 前端 plsql9 连接 mysql》对你有帮助,请点赞、收藏,并留下你的观点哦!