类型:转载 责任编辑:asp 日期:2007/03/01
在db2中如何设置默认值?
要用sql语句,在creat table时
推荐阅读
在列定义的时候用with default 指明,如
create table books ( bookid integer not null,
bookname varchar(100) with default tbd,
isbn char(10) )
bookname的缺省值就是tbd了
id integer not null with default 0
一般要计算的integer 都要设默认值哦