Mysql date insert null method: first connect to the MySQL server; then use the use keyword to complete the database selection operation; finally insert a NULL into the date data type, the code is [insert into user (time) values ( null)].
More related free learning recommendations: mysql tutorial(video)
mysql date method of inserting null:
1. First connect to the MySQL server through the client, example:
mysql -u user -p
use 数据库名;
create table user( id int(10) auto_increment primary key, time date);
insert into user (time) values (null);
select * from user;
The above is the detailed content of How to insert null in mysql date. For more information, please follow other related articles on the PHP Chinese website!