SELECT t.card_number '身份证号',SUBSTR(t.card_number,1,2) AS "省份", SUBSTR(t.card_number,7,4) "出生年月", SUBSTR(t.card_number,17,1) "性别" , CASE (SUBSTR(t.card_number,17,1)%2) WHEN 1 THEN '男' WHEN 0 THEN '女' END AS '性别' FROM user t ;