请教大家一个PHP的问题

2025-05-14 08:54:00
推荐回答(4个)
回答1:

用 左联接查询
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

回答2:

这样本来就应该有重复的,用left join然后限制为a.mc=b.mc
zhang_zj109 写的sql语句很好...

回答3:

如果楼主说是username作为量表关联的话 就至少应该有
a.username = b.username吧。。。。

回答4:

http://downloads.zend.com/studio-eclipse/6.1.2/ZendStudioForEclipse-6.1.2.zip