Home >Database >Mysql Tutorial >What does sql integer mean?

What does sql integer mean?

青灯夜游
青灯夜游Original
2019-05-11 16:49:059987browse

integer in sql means "integer, integer number", which represents the integer type, including negative integers, zero and positive integers, allowing numbers between "-32,768" and "32,767"; can be used Specify the data type of a field in the data table, for example "create table test (id integer);".

What does sql integer mean?

integer in sql represents the integer type, including negative integers, zero and positive integers; it can be used to specify the data type of a field in the data table.

Integer type, allows numbers between -32,768 and 32,767; 2 bytes.​

Example: When creating a table,

create table test (id integer);

means that the id field is of integer type. In the id field, only integers can be accessed.

Extended information:

In mysql, fields of type int (or Integer, the keyword INT is a synonym for INTEGER) allow access (-2 147 483 648, 2 147 483 647).

The above is the detailed content of What does sql integer mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Related articles

See more