If TINYINT can store three characters, for example, why can't it store up to number 999?
Since it only accepts bit 8 and therefore can encode no more than 2^8 = 256 .
8
2^8 = 256
The three characters you see in something like '123' are the result of converting binary to decimal. You cannot store arbitrary characters 3 .
'123'
3
This is 8 bits and can actually store a maximum value of 255. 8 bits have 256 possible states, including zero.
Source: https://habr.com/ru/post/1302269/More articles:jQuery: finding the previous div - jquery.Net Regex ValidationExpression ASCII - regexIs there a reason to upgrade to Visual Studio 2010 for developing Windows Forms? - .netHow to add line breaks in a request (Informix)? - sqlHow can I register that a Windows service is shutting down due to a system shutdown? - event-logCalling ClientID from aspx - c #Python code optimization (20 times slower than C) - performanceLinking / embedding in a specific page / part of a PDF document? - htmlHow safe (hardened) is this script? - securityClojure: Is it possible to create a macro to create two elements in one condp clause? - macrosAll Articles