62,041
社区成员
发帖
与我相关
我的任务
分享
select tableA.id,tableA.sid,tableA.title,tableB.sname from tableA,tableB where tableA.sid=tableB.sid
select a.id,a.sid,a.title,case when a.sid='0' then '默认' else b.sname end as sname from tableA a,tableB b where tableA.sid=tableB.sid