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

What does sql integer mean?

青灯夜游
Release: 2020-09-16 13:42:42
Original
9990 people have browsed it

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);
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template