S
S
Sandr-02019-11-23 17:54:37
SQL
Sandr-0, 2019-11-23 17:54:37

What does the number in brackets mean for type int?

I looked at the fields of the table with a query , in the Type column there are entries int (18) and bigint (20). What does the number in brackets mean here? I am attaching a picture:SHOW COLUMNS FROM b_file
5dd947e064c2d716318044.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman, 2019-11-23
@Sandr-0

to this width in characters, the value will be left-padded with zeros when displayed in the console, provided the field has the zerofill attribute set.
those. 100 for int(18) will be displayed as 000000000000000100

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question