Home>Article>Database> How to modify a field to null in mysql

How to modify a field to null in mysql

coldplay.xixi
coldplay.xixi Original
2020-10-19 14:11:52 16850browse

Mysql method to modify the field to null: 1. Create a new query and use statement settings; 2. Double-click to open the table, sort by time to find the record that needs to be modified, and click on the [finish_time] of the record Just right-click and set null.

How to modify a field to null in mysql

Mysql method to modify the field to null:

1, sql syntax

Create a new query and use the statement setting: update p_order set finish_time=null where id='XXXX'

2. Set in navicat for mysql

Double-click to open the p_order table, find the record that needs to be modified by sorting by time, and right-click on the finish_time of the record (no need to delete the data). After right-clicking, it will be set to Null (English: Set to Null), and the result will be Has been set to Null value.

Related free learning recommendations:mysql database(Video)

The above is the detailed content of How to modify a field to null in mysql. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn