M
M
Maxim2014-09-29 08:26:19
MySQL
Maxim, 2014-09-29 08:26:19

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

1 answer(s)
A
Alexander, 2014-09-29
@maxpointn2point

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 your question

Ask a Question

731 491 924 answers to any question