SELECT ID,(to_char(sysdate, 'yyyy') - substr(IDCARD_NO, 7, 4)) AS age from tableName
根据数据库字段为身份证查年龄
最新推荐文章于 2022-12-16 11:32:31 发布
SELECT ID,(to_char(sysdate, 'yyyy') - substr(IDCARD_NO, 7, 4)) AS age from tableName