@@MAX_PRECISION (Transact-SQL)

Returns the precision level used by decimal and numeric data types as currently set in the server.

Ikona łącza do tematu Transact-SQL Syntax Conventions

Składnia

@@MAX_PRECISION

Return Types

tinyint

Uwagi

By default, the maximum precision returns 38.

Examples

SELECT @@MAX_PRECISION AS 'Max Precision'

Zobacz także

Odwołanie

Configuration Functions (Transact-SQL)

decimal and numeric (Transact-SQL)

Precision, Scale, and Length (Transact-SQL)