【mysql解决办法】insert into select 想插入的数据如果部分为空怎么办?

简述 一开始,真的没想到这么简单。 期末数据默认就为NULL,所以,插入的时候,不要管就好了。 比如,我下面要插入的数据中&a

简述

一开始,真的没想到这么简单。
期末数据默认就为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的实验要求二的第一问的答案。

发布者:admin,转转请注明出处:http://www.yc00.com/web/1743863935a4520213.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信