通过一个查询更新多行,但在modify_date列中添加5秒延迟
我需要通过一个查询更新多行。我也创建了查询,它对我的工作正常,但是现在问题是。我需要以5秒的延迟更新modify_date。
在当前的用户表中,我有3列:
id | PID | name | modify_date
1 1 employee |
2 1 employee |
3 1 employee |
4 1 employee |
我的查询:
Update name = 'Pritesh'
where PID = 1
上面的查询对我有用。但是我需要更新modify_date
列以及5秒延迟(如第1行)将更新1秒,并且对于第二行,它将像这样更新5秒。
I need to update multiple row by one query. I have created query as well and its working fine for me but now the issue is. I need to update modify_date with 5 second delay.
In my current user table I have 3 columns:
id | PID | name | modify_date
1 1 employee |
2 1 employee |
3 1 employee |
4 1 employee |
My query:
Update name = 'Pritesh'
where PID = 1
Above query is working for me. But I need to update modify_date
column as well with 5 sec delay like for 1st row it will update 1 sec and for 2nd row it will update 5 sec like that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论