一元运算符,返回数字表达式的正值(一元运算符)。
+ numeric_expression
numeric_expression
是数字数据类型分类中任何数据类型(datetime 或 smalldatetime 数据类型除外)的任何有效 Microsoft® SQL Server™ 表达式。
除了无符号的 tinyint 表达式被提升为 smallint 结果之外,返回 numeric_expression 的数据类型。
该示例将变量设置为正值。
DECLARE @MyNumber decimal(10,2)
SET @MyNumber = +123.45
相关文章