M
M
maksam072018-02-08 19:06:06
MySQL
maksam07, 2018-02-08 19:06:06

Why doesn't the id column ( PRIMARY KEY, AUTO_INCREMENT ) use UNSIGNED mode?

Good afternoon. In many lessons and examples I see tables by type:

CREATE TABLE name (
  id int(11) NOT NULL AUTO_INCREMENT,
  ...
  PRIMARY KEY ( id )
) DEFAULT CHARSET=utf8;

Why don't many of the examples use an unsigned identifier? Does it threaten something? Or does it often go to the minus for many?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladlen Hellsite, 2018-02-08
@maksam07

You can use it, examples are written as simply as possible, mostly so that they are easy to understand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question