读书人

table合并有关问题

发布时间: 2014-01-08 14:18:52 作者: rapoo

table合并问题
请教下

 


[解决办法]

select a.name,c.chk1,c.chk2,d.chk3,d.chk4 
from 病人表 a,病人检查单表 b
left join 检查项目表1 c on b.checkid=c.checkid
left join 检查项目表2 d on b.checkid=d.checkid
where a.id=b.sickerid

读书人网 >C#

热点推荐