用 左联接查询
select a.*, b.* from kechengbiao as b left join kechengtixi as a on a.mc=b.mc where a.s1=b.s1 and b.s1='60' order by b.id
这样本来就应该有重复的,用left join然后限制为a.mc=b.mc
zhang_zj109 写的sql语句很好...
如果楼主说是username作为量表关联的话 就至少应该有
a.username = b.username吧。。。。
http://downloads.zend.com/studio-eclipse/6.1.2/ZendStudioForEclipse-6.1.2.zip