S
S
sorry_i_noob2018-07-18 13:14:05
MySQL
sorry_i_noob, 2018-07-18 13:14:05

MySQL - Length/Values ​​- int(1) and tinyint(1) - is it the same? What is the difference?

Hello. Can't figure out Length/Values ​​in MySQL. int(1) and tinyint(1) are they the same thing? What is the difference?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2018-07-18
@sorry_i_noob

You mistakenly assume that (1) is the data storage size.
And this is just the size of the data display when outputting.
The value will still be stored in one byte or four, according to the type.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question