我尝试在下面搜索我的问题的解决方案,但是,结果返回“如何”将空值插入列,这是我试图阻止的。请教育我。
当我将值插入一列时,其他每一列都会添加相同数量的记录,但它们是空的!什么?!?!?
INSERT INTO departments(`Account Executive 3`) VALUES('test'),('test2');
Query OK, 2 rows affected
这是该列的结果:
SELECT `Account Executive 3` FROM departments;
+---------------------+
| Account Executive 3 |
+---------------------+
| test |
| test2 |
伟大的!正是我想要的。这是我不想要的:
SELECT `Account Executive 2` FROM departments;
+---------------------+
| Account Executive 2 |
+---------------------+
| |
| |
2 rows in set (0.00 sec)
为什么 X 数量的空行附加到每隔一列?