我有一个表是这样的:如何在SQL表中插入默认值?
create table1 (field1 int,
field2 int default 5557,
field3 int default 1337,
field4 int default 1337)
我要插入这对于场2和字段4默认值的行。
我试过insert into table1 values (5,null,10,null)
但它不起作用,ISNULL(field2,default)
也不起作用。
当我插入一行时,如何告诉数据库使用列的默认值?
也[这个问题](http://stackoverflow.com/questions/25900996)请参阅其中*所有*列有默认值的情况下写的。 – stakx 2014-09-17 22:07:17