In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
2 specific content
2.1 scope of use
SQL Server (since 2008); Azure SQL database; Azure SQL data warehouse; parallel data warehouse
2.2 Grammar
Is a combination of symbols and operators evaluated by the SQL Server database engine to obtain a single data value. A simple expression can be a single constant, variable, column, or scalar function. Operators can be used to join two or more simple expressions into a complex expression.
-- Syntax for SQL Server and Azure SQL Database {constant | scalar_function | [table_name. ] Column | variable | (expression) | (scalar_subquery) | {unary_operator} expression | expression {binary_operator} expression | ranking_windowed_function | aggregate_windowed_function}-- Syntax for Azure SQL Data Warehouse and Parallel Data Warehouse-- Expression ina SELECT statement:: = {constant | scalar_function | column | variable | (expression) | {unary_operator} expression | expression {binary_operator} expression} [COLLATE Windows_collation_name]-Scalar Expression ina DECLARE, SET, IF … ELSE, or WHILE statement:: = {constant | scalar_function | variable | (expression) | (scalar_subquery) | {unary_operator} expression | expression {binary_operator} expression} [COLLATE {Windows_collation_name]
2.3 parameters
Translation:
2.4 expression result
For a simple expression consisting of a single constant, variable, scalar function, or column name: the data type of the expression, collation, precision, scale, and value are data types, collation, precision, scale, and value reference elements.
When you combine two expressions using comparison or logical operators, the resulting data type is Boolean, which is one of the following values: TRUE,FALSE or UNKNOWN. For more information about Boolean data types, see comparison operator (Transact-SQL).
When two expressions are combined using arithmetic, bitwise or string operators, the operator determines the type of data generated.
A complex expression consisting of many symbols and operators is evaluated as a single-valued result. Combine expressions to determine the data type, collation, precision, and value of the generated expression, two at a time, until the final result is reached. The order in which expressions are combined is defined by the precedence of operators in the expression.
2.5 remarks
3 references
[01] https://docs.microsoft.com/zh-cn/sql/t-sql/language-elements/expressions-transact-sql
Summary
The above is the SqlServer expression (expression) introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave a message for me, and the editor will reply you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.