SELECT p.ID, p.IDCardNo, IF ( LENGTH(p.IDCardNo) , CAST( , ) AS DATETIME ), CAST( CONCAT( ', , ) ) AS DATETIME ) ) AS Birthday, IF ( SUBSTR( p.IDCardNo, LENGTH(p.IDCardNo) , ) , '男', '女' ) AS sex FROM users p WHERE p.IsDelete AND p.IDCardNo REGEXP '[