mysql修改时间字段只修改日期不修改时间内

UPDATE tablename
SET ziduan= ADDTIME(
date(‘2019-07-07’) + INTERVAL 0 HOUR,
time(ziduan)
)
where ID BETWEEN 1 and 100

你可能感兴趣的:(SQL)