select a.Name,b.Name from glass a left join glasstype b on(a.isnew=true and a.typecode=b.selfcode) group by a.Name,b.Name
前台repeater绑定的时候,怎么绑定两个Name值呢?
------解决方案-------------------- 两个字段都是同名不行的。你可以AS一下啊,如
select a.Name,b.Name as bName from glass a left join glasstype b on(a.isnew=true and a.typecode=b.selfcode) group by a.Name,b.Name
这样就可以了 ------解决方案-------------------- select a.Name aname,b.Name bname from glass a left join glasstype b on(a.isnew=true and a.typecode=b.selfcode) group by a.Name,b.Name ------解决方案--------------------
同意 ------解决方案-------------------- select a.Name as nameBand xxxx