以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  sql语句生成的table,有没有办法,让0的单元格显示空白  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=184777)

--  作者:xxfoxtable
--  发布时间:2022/12/31 15:46:00
--  sql语句生成的table,有没有办法,让0的单元格显示空白
sql语句生成的table,有没有办法,让0的单元格显示空白
--  作者:有点蓝
--  发布时间:2022/12/31 17:06:00
--  
在SQL里直接判断
access :s
elect iif(列A = 0,null,列A) as 列A .....
SqlServer:select (case when 列A = 0 then null else 列A end) as 列A .....

或者生成table后遍历所有行把为0 的单元格设置为空值