ITPub博客

首页 > 应用开发 > IT综合 > Default Values for Columns (163)

Default Values for Columns (163)

原创 IT综合 作者:tsinglee 时间:2007-11-08 15:54:14 0 删除 编辑

You can assign a default value to a column of a table so that when a new row is
inserted and a value for the column is omitted or keyword DEFAULT is supplied, a
default value is supplied automatically. Default column values work as though an
INSERT statement actually specifies the default value.
The datatype of the default literal or expression must match or be convertible to the
column datatype.
If a default value is not explicitly defined for a column, then the default for the column
is implicitly set to NULL.

列默认值
1. 默认值或默认表达式的数据类型应与相应列的数据类型相同,或能够进行数据转换
2. 如果没有为某列显示地定义默认值 ,那么此列的默认值被隐式地定义为 NULL.

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10599713/viewspace-981300/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    740
  • 访问量
    2002869