Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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 '20, 04:29

robert's gravatar image

robert
853475468
accept rate: 0%

edited 28 Aug '20, 06:35


According to the Help DECIMAL is semantically equivalent to NUMERIC.

permanent link

answered 28 Aug '20, 09:30

Breck%20Carter's gravatar image

Breck Carter
32.5k5417261050
accept rate: 20%

1

...and vice versa :)

(28 Aug '20, 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:

×30

question asked: 28 Aug '20, 04:29

question was seen: 821 times

last updated: 28 Aug '20, 09:34