Categories
How to store octal number in database?
For example, there is a number 0537, you need to write it to the database. what type of data is better to use?
Answer the question
In order to leave comments, you need to log in
If it is not supposed to perform calculations on numbers in the database, then store them as strings, if there are calculations, then as decimal numbers, and when fetching, convert to octal format.
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question