Nulls Indicate Absence of Value【每日一译】--20121126
来源:互联网 发布:tensorflow cnn 教程 编辑:程序博客网 时间:2024/06/05 04:26
unknown, or inapplicable data. A null should not be used to imply any other value,
such as zero. A column allows nulls unless a NOT NULL or PRIMARY KEY integrity
constraint has been defined for the column, in which case no row can be inserted
without a value for that column.
NULL在一个行中的列是不存在值。NULL意味着没有,UNKNOWN,或者是没有可应用的数据。
一个NULL不能用于表示任何其它值,比如0.列允许空值除非此列有NOT NULL或者主键完整性约束
已经定义在此列上。在这种情况下空值是不允许被插入的。
cases they require 1 byte to store the length of the column (zero).
Trailing nulls in a row require no storage because a new row header signals that the
remaining columns in the previous row are null. For example, if the last three columns
of a table are null, no information is stored for those columns. In tables with many
columns, the columns more likely to contain nulls should be defined last to conserve
disk space.
如果空值位于在有值的数据列中那么NULL值将被存储。这种情况将要求1字节去存储列的长度(0)。
在行中以NULL结尾不要求存储因为行的头部信息保留前面行的列是空的。比如,如果一个表的最后
三列是空的,对于这些列是没有存储信息的。在一个拥有很多列的表,对于包含NULL的列应该最大可能
的定义在最后面以节省空间。
Most comparisons between nulls and other values are by definition neither true nor
false, but unknown. To identify nulls in SQL, use the IS NULL predicate. Use the SQL
function NVL to convert nulls to non-null values.
Nulls are not indexed, except when the cluster key column value is null or the index is
a bitmap index.
对于NULL与其它值的比较被定义为即不是TRUE也不是FALSE而是UNKNOW.对于确定NULL
在SQL中,可以使用IS NULL谓词。使用SQL的NVL函数去转换NULL值为非NULL值。
空值是不能被索引的,除非是聚簇主键列值为空或者索引是位图索引。
- Nulls Indicate Absence of Value【每日一译】--20121126
- Indexes and Nulls【每日一译】--20121211
- Bitmap Indexes and Nulls【每日一译】--20121230
- Casual Leave of Absence
- Overview of Dimensions【每日一译】--20121206
- Overview of Synonyms【每日一译】--20121208
- Overview of Indexes【每日一译】--20121209
- Solving the absence of Android source...
- Content of the PGA【每日一译】--2012-10-10
- Overview of Oracle Processes【每日一译】--2012-10-11
- Overview of Extents【每日一译】--2012-10-22
- Overview of Segments【每日一译】--2012-10-24
- Limitations of Flashback Database【每日一译】--20121122
- Overview of Materialized Views【每日一译】--20121203
- Overview of the Sequence Generator【每日一译】--20121207
- Dependencies of Function-Based Indexes【每日一译】--20121212
- Resolve Dependencies of Function-Based Indexes【每日一译】--20121213
- Format of Index Blocks【每日一译】--20121214
- Ubuntu 12.04安装Netbeans7.2
- Topic Model
- 第三章 typedef
- ADS1.2 Error:(Fatal) L6002u:could not open file C:/...
- HDU 3143 Speedy Escape(最短路+二分+搜索)
- Nulls Indicate Absence of Value【每日一译】--20121126
- escape()、encodeURI()、encodeURIComponent()区别详解
- 交互系统公司(Interactive Systems Corporation)
- UITableView 多选
- Windows Store apps开发[57]Windows 8 开发31日
- ubuntu下用户的创建与删除
- poj 1322 Chocolate
- MySQL索引背后的数据结构及算法原理
- c++4种类型转换