帮忙翻译如下短文?译完马上结贴,谢谢

bluesea07 2006-05-14 03:56:39
Working with NULL Values
Back in Lesson 4, "Filtering Data," you learned that NULL values are no values or the lack of a value. A column that allows NULL values also allows rows to be inserted with no value at all in that column. A column that does not allow NULL values does not accept rows with no value—in other words, that column will always be required when rows are inserted or updated.
Every table column is either a NULL column or a NOT NULL column, and that state is specified in the table definition at creation time. Take a look at the following example:
输入
CREATE TABLE Orders
(
order_num INTEGER NOT NULL,
order_date DATETIME NOT NULL,
cust_id CHAR(10) NOT NULL
);
分析
This statement creates the Orders table used throughout this book. Orders contains three columns: order number, order date, and the customer ID. All three columns are required, and so each contains the keyword NOT NULL. This will prevent the insertion of columns with no value. If someone tries to insert no value, an error will be returned, and the insertion will fail.
This next example creates a table with a mixture of NULL and NOT NULL columns:
...全文
85 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hyrongg 2006-05-14
  • 打赏
  • 举报
回复
Null值的操作:
回到第四课,“数据过滤”,你已经知道NULL意味着没有值或者值缺乏,一个允许NULL值的列同时也允许插入一条该字段为NULL值的纪录。一个不允许NULL的列也不允许插入一条该列为NULL的纪录,换句话说,如果该列不允许为空,则当插入一条记录或修改这列的时候,这列通常会需要赋不为NULL值。
每个表的列不管是允许NULL的还是不允许NULL的,它的状态通常会在创建表的时候定义,看一下以下的例子:
输入
CREATE TABLE Orders
(
order_num INTEGER NOT NULL,
order_date DATETIME NOT NULL,
cust_id CHAR(10) NOT NULL
);
分析
这段命令创建了Orders表,该表从始至终的被运用于本书,orders表包含了3个列
采购号码, 采购日期和客户编号,所有三个列都必须要有相关信息,所以每个列都设为NOT NULL,这样会避免列插入空值,如果试图插入空值,将会返回错误信息,同时插入操作也会失败。接下来的例子将要创建一个既有NULL列也有Not NULL 列的表
---------------------------------------------------------
看你这本书真得不增麽样:(
liangpei2008 2006-05-14
  • 打赏
  • 举报
回复
楼上翻译的不错:)
itblog 2006-05-14
  • 打赏
  • 举报
回复
Working with NULL Values
空值的作用
Back in Lesson 4, "Filtering Data," you learned that NULL values are no values or the lack of a value. A column that allows NULL values also allows rows to be inserted with no value at all in that column. A column that does not allow NULL values does not accept rows with no value—in other words, that column will always be required when rows are inserted or updated.
在第4课,"数据过滤,"了解到空值是没有值或是不存在的值,一个列如果允许为空,在没有值的时候也可以被插入行。如果一个列不允许空,将不接受没有值的数据插入或更新。换句话说就是这个列在插入或是更新行的时候总提示有值没有填写。
Every table column is either a NULL column or a NOT NULL column, and that state is specified in the table definition at creation time. Take a look at the following example:
每一个表中的列或者是一个允许为空的列或者是一个不允许为空的列,它可以在创建表的时候指定,例如下面这个例子:
输入
CREATE TABLE Orders
(
order_num INTEGER NOT NULL,
order_date DATETIME NOT NULL,
cust_id CHAR(10) NOT NULL
);
分析
This statement creates the Orders table used throughout this book. Orders contains three columns: order number, order date, and the customer ID. All three columns are required, and so each contains the keyword NOT NULL. This will prevent the insertion of columns with no value. If someone tries to insert no value, an error will be returned, and the insertion will fail.
这段语句是创建表通过书本创建一个orders表,表orders包括三列:定单号, 定购日期,客户ID,这三个列都不能少,并且每列都包含关键字 not null,这样可以阻止插入列的时候没有数值,如果有人试图插入空值,将返回错误,插入失败。
This next example creates a table with a mixture of NULL and NOT NULL columns:
接下来这个例子是以允许空和不允许空混合的列创建一个表
NinGoo 2006-05-14
  • 打赏
  • 举报
回复
就是说一个表中的列,要么是允许插入NULL值,要么不允许插入NULL值。然后给了个例子,表中三个列都不允许是NULL值。
课程目标 (1)采用PyTorch深度学习工具进行实战操作,掌握PyTorch基本使用;(2)掌握工业界短文本处理解决方案,如:对话系统,智能客服,新闻领域分类等;(3)词向量项目案例应用,掌握文本的表示方法;(4)通过项目案例实战,掌握TextCNN短文本分类在工业界应用,可以直接应用在如下领域例如:对话系统意图识别,智能客服问答意图识别,资讯短文本分类等文本分类场景。适用人群 (1)想要从事NLP的在校学生、NLP研发工程师(2)自然语言处理从业者、深度学习爱好者课程简介 短文本分类作为自然语言处理的基础技术之一NLP领域的热门应用,常用在对话语言平台,文章分类,智能客服,FAQ智能问答等多个场景。 因此深入掌握短文本分类技术,是作为自然语言处理从业者必备技能,本课程以案例驱动出发,结合多个工业级解决方案,了解当下文本分类实际工业界的应用。课程要求: (1)开发环境:python版本:Python3.x;PyTorch深度学习工具;(3)学员基础:需要一定的Python基础,及深度学习基础;(4)学员收货:掌握深度学习PyTorch工具使用;掌握TextCNN短文本分类;了解工业流行解决方案;(5)学员资料:内含整程序源码和数据集;(6)课程亮点:专题技术,整案例,全程实战操作,徒手撸代码。

34,594

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧