select DJH, lastname as SQR,departmentname as SZBM,jobtitlename as GW, field001 as QJLX ,SQRQ,QJKSRQ,QJKSSJ,QJJSRQ,QJJSSJ,QJTS,QJXSS,FJ from formtable_main_12 a left join HrmResource b on a.SQR = b.id left join HrmDepartment b2 on a.SZBM = b2.id left join HrmJobTitles b3 on a.GW = b3.id left join hrmLeaveTypeColor b4 on a.QJLX = b4.id 代码如上,现在想把FJ这个字段,在为空值时返回‘0或者否’,非空时返回“1,或者是”有大神指教一下么? |
最佳回答 |
||||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|