cancel
Showing results for 
Search instead for 
Did you mean: 

Data type DECIMAL vs NUMERIC

huber1
Participant
1,064

I am wondering which of the following two data types you use: DECIMAL or NUMERIC?

In the SQL Anywhere documentation, it says DECIMAL is a core feature of the ANSI SQL Standard, whereas NUMERIC is compatible. As far as I understand, DECIMAL gives the database manufacturer a bit more freedom for the implementation of precision, as I found on the internet the following: "... precision equal to or greater than the value of the specified <precision>"

So it seems to me logical to use DECIMAL, isn't it?

Accepted Solutions (0)

Answers (1)

Answers (1)

Breck_Carter
Participant

According to the Help DECIMAL is semantically equivalent to NUMERIC.

VolkerBarth
Contributor

...and vice versa 🙂