mysql根據身份證提取生日和性別

update security_user set sex='女' where id in (  select a.id from (  SELECT id , SUBSTR(ID_CARD,7,8),SUBSTR(ID_CARD,17,1),ID_CARD,birthday,sex from security_user   where LENGTH(ID_CARD) =18   and sex i
相關文章
相關標籤/搜索