How to modify the value of two MySQL together

The original student table information is so
Here Insert Picture Description
then I want the id 18051105 null instead of class_id and major_id
can use the following statement

UPDATE student SET class_id = NULL , major_id = NULL WHERE id='18051105';

Last result:
Here Insert Picture Description

Released four original articles · won praise 4 · Views 1272

Guess you like

Origin blog.csdn.net/weixin_44392084/article/details/104804020