Why all data in database are stored in HEX?

Examining the device database, all could not understand - why without exception, all databases store data in hex? (screenshot below) From the biggest DB to simple

After all, if each request spends resources on continuous recoding and hex (if my personal calculations) weighs in 2 times more

5d2e3fa502995207156488.png

Thank you
March 24th 20 at 14:28
4 answers
March 24th 20 at 14:30
Why all data in database are stored in HEX?
It's not true.

Computer works with binary data.
In HEX or Decimal translate for the convenience of man - when it is necessary to show on the screen. And that's all.
March 24th 20 at 14:32
No, do not keep. Show some types of data can.
For example, MS SQL: data types.
And I have so (file from MS SQL database):
5d2e9e238f1b4137576979.png
March 24th 20 at 14:34
I can not understand what they themselves came up with?
Base store the binary representation of the data, depending on their type. No one is going to recode, for example, a HEX string, it has no meaning.
5d2e3e9af3027510736951.png

Mean that open data files in the database and they are stored here - emilia_Brek commented on March 24th 20 at 14:37
@emilia_Brek, No. You can see information display on the screen. Open any other file, even a text in a HEX mode and you will see the same thing. - douglas.Kling43 commented on March 24th 20 at 14:40
@emilia_Brek, that you as the editor or smotrelka shows. - mckayla.Gerhol commented on March 24th 20 at 14:43
March 24th 20 at 14:36
How you thought you did it "twice"?
Fhex = 15dec, for example. Instead of a single byte, dotted-decimal same number would be two.
Computer science in the school you taught or did you walk?
Meaning that one byte in hex is written as two characters. - howard_Blan commented on March 24th 20 at 14:39
@howard_Blan, I'm not sure the author himself understands what he meant. Well, the text in hexadecimal representation in the database is stored exactly nothing, of course, if such a string in the text field is not put. - mckayla.Gerhol commented on March 24th 20 at 14:42
@howard_Blan, Yeah, that's what was meant. For example, the string "hello" in HEX would be "68 65 6c 6c 6f" = 15 characters instead of 5 - emilia_Brek commented on March 24th 20 at 14:45
@emilia_Brek, you just skipped computer science. The number of characters you have on screen there is nothing. - mckayla.Gerhol commented on March 24th 20 at 14:48
@emilia_Brek, And in binary form for recording one byte need as many as eight characters!
And what it is used for something.......

To school you want to teach computer science!

In the system of notation is written only in the number. There are no letters!
To record a word invented code table, each letter of the alphabet is coded as a number. Usually one letter is one or two bytes depending on the code table.
Therefore, the word Hello is
In the binary system is written so 0101000101001110010101010101010101011000
In the decimal system is zapsana so 8178858588
In hexadecimal to be written so 514E555558
It may be different - it all depends on which code table is used. - ladarius.Schneider commented on March 24th 20 at 14:51
@ladarius.Schneider, Oh.5d2e9f17aed02288822982.png - howard_Blan commented on March 24th 20 at 14:54

Find more questions by tags HexDatabases