如何将空值插入到SQL Server


71

在sql server企业管理器中,如何编写插入语句并传递null值?

Answers:


111
INSERT INTO atable (x,y,z) VALUES ( NULL,NULL,NULL)

61

如果您使用的是SSMS(或较旧的企业管理器)直接编辑表,请按CTRL + 0添加空值。


太好了-我总是忘记这一点!
贾罗德·狄克逊
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.