In sql server management studio, data type- money, when I enter an amount with a decimal it automatically adds on zeros to fill up to the hundredths. How can I determine the amount of spaces after the decimal?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
The number of zeroes behind the dot is called the
precision
of a datatype. Themoney
data type has a fixed precision:That's five digits behind the dot. If you'd like a different precision, use the
decimal
datatype. Some examples:This prints: