我在设计数据库时,是字符的就设置默认值为空字符串,是数字型的就默认0,不知道这样有什么不妥,请大家给给参考意见。在线等。
create table test
(
resID_vch Varchar(20) Not null,
depoID_vch Varchar(20) Not null,
price_num Numeric(20,3) null default(0),
measureID_vch Varchar(20) null default(''),
amount_num Numeric(20,3) null default(0),
sum_num numeric(20,3) null default(0),
qlityLvl_vch Varchar(10) Null default(''),
remark_vch Varchar(200) null default(''),
)