作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
所以我知道我应该在插入之前检查一下这一点,但我做了一个 SQL 插入,在几行上插入了错误的日期。纠正这个问题的公式是
accounts.timely_date = accounts.due_date + 45 天
。
其中accounts.facility_id = 44
有没有办法在sql中同时对多行执行此操作?
最佳答案
您可以使用 UPDATE 查询:
update accounts
set
timely_date = due_date + interval 45 day
where
facility_id = 44
关于mysql - SQL 中的变量/For Each,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34616913/
我是一名优秀的程序员,十分优秀!