首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

table合并有关问题

2014-01-08 
table合并问题请教下[解决办法]select a.name,c.chk1,c.chk2,d.chk3,d.chk4 from 病人表 a,病人检查单表 b

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 

热点排行