search
Homephp教程php手册Mysql字段长度,供出血者参考,呵呵!

mysql|参考

列类型  需要的存储量  
TINYINT  1 字节
SMALLINT  2 个字节
MEDIUMINT  3 个字节
INT  4 个字节
INTEGER  4 个字节
BIGINT  8 个字节
FLOAT(X)  4 如果 X FLOAT  4 个字节
DOUBLE  8 个字节
DOUBLE PRECISION  8 个字节
REAL  8 个字节
DECIMAL(M,D)  M字节(D+2 , 如果M NUMERIC(M,D)  M字节(D+2 , 如果M
日期和时间类型
列类型  需要的存储量  
DATE  3 个字节
DATETIME  8 个字节
TIMESTAMP  4 个字节
TIME  3 个字节
YEAR  1 字节

串类型
列类型  需要的存储量  
CHAR(M)  M字节,1 VARCHAR(M)  L+1 字节, 在此L TINYBLOB, TINYTEXT  L+1 字节, 在此LBLOB, TEXT  L+2 字节, 在此LMEDIUMBLOB, MEDIUMTEXT  L+3 字节, 在此LLONGBLOB, LONGTEXT  L+4 字节, 在此LENUM('value1','value2',...)  1 或 2 个字节, 取决于枚举值的数目(最大值65535)
SET('value1','value2',...)  1,2,3,4或8个字节, 取决于集合成员的数量(最多64个成员)  



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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment