union all
SELECT id FROM table2 where a='12'
union all
SELECT id FROM table3 where a='12'
---table1指的是第一张表,table2指的是第二张表,table3指的是第三张表,select a.uid,a.uname,a.upsw,a.urealname,a.utel,a.remark,b.rname,b.rremark,c.deptname,c.deptremark from table1 a,table2 b, table3 c where a.sems_role_rid=b.rid and a.udeptid=c.deptid
SELECT manager.imgidFROM manager, admin, reply
WHERE reply.pid = admin.id
AND admin.did=manager.id
AND xxxxxxx
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)