1、把字符串换成日期'%Y-%m-%d'
UPDATE tbl_receipt_header set bank=STR_TO_DATE(bank, '%d/%m/%Y') WHERE bank<>'' AND bank IS NOT NULL ;
2、字段转成日期
1、把字符串换成日期'%Y-%m-%d'
UPDATE tbl_receipt_header set bank=STR_TO_DATE(bank, '%d/%m/%Y') WHERE bank<>'' AND bank IS NOT NULL ;
2、字段转成日期