admin管理员组

文章数量:1024717

简述

一开始,真的没想到这么简单。
期末数据默认就为NULL,所以,插入的时候,不要管就好了。

比如,我下面要插入的数据中,最后一列要求为空。

mysql> insert into sc (sno, cno) select student.sno, courseo from student, course where student.sdept = 'Is' and courseo = '7';
Query OK, 2 rows affected (0.09 sec)
Records: 2  Duplicates: 0  Warnings: 0

后记

这个就是mysql数据库技术与实验指导的实验5的实验要求二的第一问的答案。

简述

一开始,真的没想到这么简单。
期末数据默认就为NULL,所以,插入的时候,不要管就好了。

比如,我下面要插入的数据中,最后一列要求为空。

mysql> insert into sc (sno, cno) select student.sno, courseo from student, course where student.sdept = 'Is' and courseo = '7';
Query OK, 2 rows affected (0.09 sec)
Records: 2  Duplicates: 0  Warnings: 0

后记

这个就是mysql数据库技术与实验指导的实验5的实验要求二的第一问的答案。

本文标签: 解决办法为空数据MySQLselect