Using Constants

A constant is a symbol that represents a specific data value. The format of a constant depends on the data type of the value it represents. Constants are also called literals. Some examples of constants are:

For numeric constants, to specify the sign of the numeric value use the unary + and - operators:

+$156.45

-73.52E8

-129.42

+442

  

Using Constants in Transact-SQL

In Transact-SQL, constants can be used in many ways. Here are some examples:

See Also
Constants INSERT
Expressions LIKE
Operators PRINT
ALTER TABLE RAISERROR
CREATE TABLE UPDATE
DELETE WHERE

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.