mysql--根據birth計算age並更新全部字段

1:根據身份證號sfzh補充birthweb UPDATE patient set birth=cast(substring(sfzh,7,8) as date) 2:根據birth計算age並修改全部sql UPDATE patient AS A INNER JOIN (SELECT patid,TIMESTAMPDIFF(YEAR,birth,NOW()) as newage FROM pat
相關文章
相關標籤/搜索