A
A
antobra2019-07-16 23:28:29
Database
antobra, 2019-07-16 23:28:29

Why is data in all databases stored in HEX?

Parsing the structure of the database, I still could not understand - why do all databases store data in hex without exception? (screenshot below) From the largest databases to the simplest
After all, with each request, resources are spent on constant recoding and hex (according to my personal calculations) weighs 2 times more
5d2e3fa502995207156488.png
Thank you

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Konstantin Tsvetkov, 2019-07-16
@tsklab

No, they don't. Show some types of data - can.
For example, MS SQL: data types .

And I have this (file from MS SQL database):
5d2e9e238f1b4137576979.png

R
Rsa97, 2019-07-16
@Rsa97

Can't figure out what you've come up with?
Databases store a binary representation of data, depending on their type. No one will recode, for example, numbers into a HEX string, this makes no sense.

M
Moskus, 2019-07-16
@Moskus

How did you think that you got "twice as much"?
Fhex = 15dec, for example. Instead of one byte, the decimal representation of the same number would take up two.
Didn't they teach you computer science at school or did you skip it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question