강좌란에 있는 MSSQL-to-Firebird.pdf 문서를 보시면,
http://firebird.borlandforum.com/impboard/impboard.dll?action=read&db=fb_tutorial&no=20
numeric과 decimal의 차이에 대해 다음과 같이 쓰고 있네요.
A subtle difference in the way NUMERIC and DECIMAL behave in Firebird to bear in mind is that the NUMERIC definition means exactly the precision requested (total number of digits), while DECIMAL mean at least the request precision (the digits to the right of the decimal symbol, however, are maintained exactly). In MS SQL, on the other hand, numeric and decimal are synonims.
알아두어야 할 파이어버드에서 NUMERIC과 DECIMAL의 미묘한 차이는, NUMERIC의 경우 정확하게 지정된 정밀도(precision)이 지정되지만, DECIMAL에서는 지정한 정밀도는 최소한이라는 것이다(하지만 소숫점 오른쪽의 자릿수는 그대로 유지된다). 반면, MS에서는 numeric과 decimal은 동일한 의미이다.
DECIMAL에서는 지정한 정밀도보다 더 높은 정밀도로 동작할 수도 있다는 얘기군요.
저도 뭔 소린지 정확히는... -.-;;;
최성모 님이 쓰신 글 :
: datatype 중 numeric와 decimal가 있는데 차이가 있는지요? 책에는 그냥 같은 의미로만 되어 있는데...
: 알려주시면 감사하겠습니다...
|