枚举类型转换语义
SQL将性别男女(0,1)返回(男,女)的字符串
Oracle 通过15位或18位身份证号码计算年龄、出生年月日、性别
18位身份证号转15位
select substr(id,1,6)||substr(id,9,17) as newid from tablename
SQL将性别男女(0,1)返回(男,女)的字符串
Oracle 通过15位或18位身份证号码计算年龄、出生年月日、性别
select substr(id,1,6)||substr(id,9,17) as newid from tablename