数据清洗——SQL——生成MD5值

update curr_weather t set md5=md5(CONCAT(t.cityId,'#',t.createDate));
根据cityId 和createDate来生成md5值,更新到curr_weather,其中“#”代表中间的省略的字段.

你可能感兴趣的:(SQL,mysql)