可以写成这样
decode(字段*(字段-1)*(字段-4)*(字段-7),0,表达式1,...)例:
13:27:43 SQL> select * from s;      SNO SN         SE       AGE
--------- ---------- -- ---------
        1 xm001      m         11
        2 xm002      f         12
        3 xm003      f         13实际:191
13:27:48 SQL> select decode((sno-1)*(sno-4)*(sno-7)*sno,0,'ok','not in 1,4,7') from s;DECODE((SNO-
------------
ok
not in 1,4,7
not in 1,4,7实际:70
13:31:44 SQL>