sqlserver 2012中哪种数据类型存储单位成本价格和金额? [英] Which data type store unit cost price and amount in sqlserver 2012?
问题描述
在sql server 2012中我为制药公司设计数据库来存储数据
订单
在这个数据库里面,我有里面的表顺序有三个字段
数量
单位成本价格
金额(数量*单位成本价格)
数量数据类型是整数
我可以使用哪种数据类型作为单位成本价格字段和金额字段?
金额将很大因为生产Qunatity从200000到1000000盒顺序。
单位成本价格从1英镑到200英镑。
以便在sqlserver 2012中哪个数据类型存储单位成本价格和金额?
我尝试过:
sqlserver 2012中哪种数据类型存储单位成本价格和金额?
In sql server 2012 I design database for pharmaceutical company to store data of
orders
Inside this database I have Table order inside it have three fields
Quantity
Unit Cost price
Amount( Quantity * Unit Cost price)
Quantity datatype is integer
What data type i can use for Unit Cost price field and Amount field ?
Amount will be big because production Qunatity from 200000 to 1000000 box in order .
Unit cost price from 1 pound to 200 pound .
so that Which data type store unit cost price and amount in sqlserver 2012?
What I have tried:
Which data type store unit cost price and amount in sqlserver 2012?
推荐答案
参见数据类型(Transact-SQL)| Microsoft Docs [ ^ ]。
以下是关于货币价值最佳的讨论 - 搜索资料 [ ^ ]
这篇关于sqlserver 2012中哪种数据类型存储单位成本价格和金额?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!