Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the advantage of Sql Data Type numeric?

What is the advantage of Sql numeric data type ( like numeric(10,2)). What is the difference between decimal and numeric? And also what is the type match in .net for numeric?

like image 216
ward87 Avatar asked Dec 21 '22 21:12

ward87


1 Answers

AFAIK they are synomyms as far as TSQL is concerned. Re .NET; the only direct equivalent is SqlNumeric; decimal comes close, but doesn't have the same range etc.

like image 189
The Blue Unicorn Avatar answered Dec 24 '22 10:12

The Blue Unicorn