用处: 用于判断身份证是否和性别相符
DECODE(MOD(TO_NUMBER(DECODE(Length(certno),15,SUBSTR(certno,15,1),18,SUBSTR(certno,17,1))),2),1,1,0,2)<> GENDER GENDER = 1 男
用处: 用于判断身份证是否和性别相符
DECODE(MOD(TO_NUMBER(DECODE(Length(certno),15,SUBSTR(certno,15,1),18,SUBSTR(certno,17,1))),2),1,1,0,2)<> GENDER GENDER = 1 男