Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Unary operators perform an operation on only one expression of any one of the data types of the numeric data type category. For more information about data type categories, see Transact-SQL Syntax Conventions.
| Operator | Meaning |
|---|---|
Numeric value is positive. |
|
Numeric value is negative. |
|
Returns the ones complement of the number. |
The + (Positive) and - (Negative) operators can be used on any expression of any one of the data types of the numeric data type category. The ~ (Bitwise NOT) operator can be used only on expressions of any one of the data types of the integer data type category.
See Also
Reference
Data Types (Transact-SQL)
Expressions (Transact-SQL)