1、首先通过客户端连接到MySQL服务器,示例:mysql -u user -p
2、使用use关键字,完成选库操作,示例:use 数据库名;
3、创建一张简易表,其中date时间格式支持NULL赋值,示例:create table user(id int(10) auto_increment primary key,time date);
4、想time字段中的 date 数据类型中插入一个NULL,示例:insert into user (time) values (null);
5、查询一下,Date数据类型中成功插入一个NULL,示例:select * from user;