| |

VerySource

 Forgot password?
 Register
Search
View: 800|Reply: 4

Money type, can you directly determine the number of decimal places when building a table, such as two decimal places

[Copy link]

6

Threads

11

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-2-19 00:30:01
| Show all posts |Read mode
Money type, can you directly determine the number of decimal places when building a table, such as two decimal places
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-4-24 21:15:01
| Show all posts
Money doesn't work, fixed to four decimal places

decimal is fine
Reply

Use magic Report

1

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-4-24 22:00:01
| Show all posts
You can choose the decimal type, the money type seems to be fixed to 4 decimal places.
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-4-24 22:30:01
| Show all posts
Monetary data
Monetary data represents positive or negative monetary values. In Microsoft® SQL Server&# 8482; 2000, money and smallmoney data types are used to store monetary data. The accuracy of monetary data storage is four decimal places. The range of values ​​that can be stored in the money data type is -922,337,203,685,477.5808 to +922,337,203,685,477.5807 (8 bytes of storage required) The range of values ​​that can be stored in the smallmoney data type is -214,748.3648 to 214,748.3647 (4 bytes of storage required). If the value exceeds the above range, the decimal data type can be used instead.
Reply

Use magic Report

6

Threads

11

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-4-25 10:45:02
| Show all posts
Decimal how to use sql statement to determine the decimal places and integer places when building a table
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list