UPDATE Query without WHERE Clause

前端 未结 2 713
無奈伤痛
無奈伤痛 2021-01-17 08:53

I know it sounds to be a stupid question but i was wondering if the update query can be used without a where clause. And if so in what conditions.<

2条回答
  •  北海茫月
    2021-01-17 09:06

    So, I think when you want to update the whole field for some kind of reasons like updating the status of users enrollment to free for all users.

    UPDATE users SET status = "free";
    

提交回复
热议问题