通过一个查询更新多行,但在modify_date列中添加5秒延迟

发布于 2025-01-24 19:41:24 字数 438 浏览 2 评论 0原文

我需要通过一个查询更新多行。我也创建了查询,它对我的​​工作正常,但是现在问题是。我需要以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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文