case 后不是where而是when另:
select deptname from ytdept where deptbh=ytpersonid.deptbh
select PCname from YtpersonClass where PCbh=ytperson.Pcbh
返回的结果可能有多条记录。
select deptname from ytdept where deptbh=ytpersonid.deptbh
select PCname from YtpersonClass where PCbh=ytperson.Pcbh
返回的结果可能有多条记录。
部门=(select deptname from ytdept where deptbh=ytpersonid.deptbh),这句不对,不能用子查询,不合语法
在职=(case when online=0 then '否' else '是' end )