比對字段判斷字段是否爲空,合併字段

--如果zysl不爲空 則合併zysl和yysl     否則合併zyjzsl和yyjzsl select  zysl,yysl,zyjzsl,yyjzsl from 表_健康體檢表 select (case when zysl is not null then concat(zysl, yysl) else concat(zyjzsl, yyjzsl) end )as 左眼視力矯正視力  fro
相關文章
相關標籤/搜索