SELECT s.id,c1.name,c2.name,c3.name FROM dbo.student s, code c1, code c2, code c3
WHERE s.code1=c1.id
AND s.code1=c1.id
AND s.code2=c2.id
AND s.code3=c3.id

posted on 2014-05-06 10:34  王洪洪  阅读(132)  评论(0编辑  收藏  举报