阮一峰的IT笔记:首页 -> 分类 -> 数据库 查看所有文章:按分类 | 按月份

MySQL 笔记(III)

MySQl的数据类型。

16.

整数类型:TINYINT、SMALLINT、MEDIUMINT、INT、BIGINT。

17.

浮点数类型:FLOAT、DOUBLE、DECIMAL。

18.

日期和时间类型:DATE、TIME、DATETIME、TIMESTAMP、YEAR。

19.

字符串数据类型:

[NATIONAL] CHAR(M) [BINARY|ASCII|UNICODE]

[NATIONAL] VARCHAR(M) [BINARY]

TINYBLOB

TINYTEXT

BLOB

TEXT

MEDIUMBLOB

MEDIUMTEXT

LONGBLOB

LONGTEXT

ENUM('value1','value2','value3'...) 最大65535项

SET('value1','value2',...) 最大64项

« MySQL 笔记(II) | 首页 | MySQL中的子查询(subqueries) »

About

This page contains a single entry from the blog posted on 2007年11月12日 18:46.

The previous post in this blog was MySQL 笔记(II).

The next post in this blog is MySQL中的子查询(subqueries).

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33

Post a comment