728x90
반응형
decimal 및 numeric(Transact-SQL) - SQL Server
decimal 및 numeric 데이터 형식의 Transact-SQL 참조입니다. decimal 및 numeric은 고정 전체 자릿수와 소수 자릿수가 있는 숫자 데이터 형식의 동의어입니다.
learn.microsoft.com
MS에서는 numeric과 decimal은 동일한 의미이다.
DECIMAL(M,D)
M은 소수 부분을 포함한 실수의 총 자릿수
D는 소수 부분의 자릿수
https://freeprog.tistory.com/295
mssql -- 소수점이하 정확한 값은 decimal 사용하라
mssql -- 소수점이하 정확한 값은 decimal 사용하라. 참고 : https://msdn.microsoft.com/en-us/library/ms187912(v=sql.105).aspx https://docs.microsoft.com/ko-kr/sql/t-sql/data-types/decimal-and-numeric-transact-sql?view=sql-server-ver15 ** Decim
freeprog.tistory.com
DECIMAL이 더정확, 넓은 범위로 설정가능하다는 말도있다.
728x90
반응형
'DB' 카테고리의 다른 글
| [Mybatis] insert return 값 (0) | 2023.02.11 |
|---|---|
| [MSSQL] INSERT NOT EXISTS (0) | 2023.02.07 |
| [Mybatis] statementType CALLABLE (0) | 2023.01.17 |
| [SQL][Mybatis] <collection> (0) | 2023.01.13 |
| [MyBatis] < selectKey> (0) | 2023.01.12 |