ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

4.2. Value Expressions

2020-12-18 09:29:07  阅读:258  来源: 互联网

标签:function 4.2 Value value expressions expression Expressions 表达式


4.2. Value Expressions

4.2. 值表达式

Value expressions are used in a variety of contexts, such as in the target list of the SELECT command,as new column values in INSERT or UPDATE, or in search conditions in a number of commands. The result of a value expression is sometimes called a scalar, to distinguish it from the result of a table  expression (which is a table). Value expressions are therefore also called scalar expressions (or even simply expressions). The expression syntax allows the calculation of values from primitive parts using arithmetic, logical, set, and other operations.

值表达式可在各种上下文中使用,例如在SELECT命令的目标列表中,作为INSERT或UPDATE中的新值或在许多命令中的搜索条件中使用。 值表达式的结果有时称为标量,以将其与表的表达式(即表)的结果区分开。 因此,值表达式也称为标量表达式(甚至简称为表达式)。 表达式语法允许使用算术,逻辑,集合和其他运算对值进行计算。

 

A value expression is one of the following:

值表达式为以下之一:

• A constant or literal value

• A column reference

• A positional parameter reference, in the body of a function definition or prepared statement

• A subscripted expression

• A field selection expression

• An operator invocation

• A function call

• An aggregate expression

• A window function call

• A type cast

• A collation expression

• A scalar subquery

• An array constructor

• A row constructor

• Another value expression in parentheses (used to group subexpressions and override precedence)

  • 常量或文字值

  • 列引用

  • 在函数定义或准备好的语句主体中的位置参数引用

  • 下标表达式

  • 区域选择表达式

  • 运算符调用

  • 函数调用

  • 聚合表达式

  • 窗口函数调用

  • 类型转换

  • 排序规则表达式

  • 标量子查询

  • 数组构造函数

  • 行构造函数

  • 括号中的另一个值表达式 (用于分组子表达式和调整优先级)

 

In addition to this list, there are a number of constructs that can be classified as an expression but do not follow any general syntax rules. These generally have the semantics of a function or operator and are explained in the appropriate location in Chapter 9. An example is the IS NULL clause.

除此列表外,还有许多可归类为表达式但不遵循任何常规语法规则的构造。 它们通常具有函数或运算符的语义,并在第9章的相应章节中进行了说明。一个示例是IS NULL子句。

 

We have already discussed constants in Section 4.1.2. The following sections discuss the remaining options.

我们在第4.1.2章节讨论了常量。接下来的章节讨论剩余的选项。

 

标签:function,4.2,Value,value,expressions,expression,Expressions,表达式
来源: https://blog.csdn.net/ghostliming/article/details/111352732

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有