The forum will be down for maintenance at some point between Friday, September 25, 2020 at 5pm PDT and Sunday, September 27, 2020 at 11:59 PDT. Downtime is unknown but will be minimized.

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?

asked 28 Aug, 04:29

robert's gravatar image

robert
718414862
accept rate: 0%

edited 28 Aug, 06:35


According to the Help DECIMAL is semantically equivalent to NUMERIC.

permanent link

answered 28 Aug, 09:30

Breck%20Carter's gravatar image

Breck Carter
30.8k496680992
accept rate: 20%

1

...and vice versa :)

(28 Aug, 09:34) Volker Barth
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×28

question asked: 28 Aug, 04:29

question was seen: 101 times

last updated: 28 Aug, 09:34