sql语句:
(case when b.mjl>0 then (case when a.sl%b.mjl<>0 then '*' else '' end) else '' end) as 标志
a.sl、b.mjl 为int型
错误提示:
服务器: 消息 8117,级别 16,状态 1,行 1
操作数数据类型 numeric 无效(运算符 modulo)。要想按以上语句要求输出需要怎样修改?谢谢!