Should you choose the MONEY or DECIMAL(x,y) datatypes in SQL Server?

前端 未结 12 2437
时光取名叫无心
时光取名叫无心 2020-11-22 03:45

I\'m curious as to whether or not there is a real difference between the money datatype and something like decimal(19,4) (which is what money uses

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 04:13

    I realise that WayneM has stated he knows that money is specific to SQL Server. However, he is asking if there are any reasons to use money over decimal or vice versa and I think one obvious reason still ought to be stated and that is using decimal means it's one less thing to worry about if you ever have to change your DBMS - which can happen.

    Make your systems as flexible as possible!

提交回复
热议问题