MySQL中tinytext、text、mediumtext和longtext详解
来源:互联网 发布:字体临摹软件 编辑:程序博客网 时间:2024/06/08 20:20
一、字符串类型
类型
范围
说明
Char(N) [ binary]N=1~255 个字节binary :分辨大小写固定长度std_name cahr(32) not nullVarChar(N) [binary]N=1~255 个字节
binary :分辨大小写可变长度std_address varchar(256)TinyBlob最大长度255个字节(2^8-1)
Blob (Binary large objects)储存二进位资料,且有分大小写
memo text not nullTinyText最大长度255个字节(2^8-1)Blob最大长度65535个字节(2^16-1)habby set(‘玩电玩’,'睡觉’,'看电影’,'听音乐’)Set集合最大数目为64
辨別Null与Not Null :Null为允许储存空值(Null)
二、数字/数值类型
类型
范围
说明
例如
TinyInt[M] [UNSIGNED]-128~127UNSIGNED : 0~255 num tinyint unsignedSmallInt[M] [UNSIGNED]-32768~32767
UNSIGNED :0~ 65535 MediumInt[M] [UNSIGNED]-8388608~8388607
UNSIGNED :0~16777215 Int[M] [UNSIGNED]-2^31~2^31-1
UNSIGNED : 0~2^32 BigInt[M] [UNSIGNED]-2^63~2^63-1
UNSIGNED : 0~2^64 Float [(M,D)]
-3.4E+38~3.4E+38( 约 )
注: M 为长度, D 为小数,Float 4 bytes,Double 8 bytes Double [(M,D)]-1.79E+308~1.79E+308( 约 )Decimal [(M,D)]辨別ZeroFill:当宣告关键字ZeroFill为自动填满0,如 000021
三、日期时间类型
类型
范围
说明
Date日期(yyyy-mm-dd) Time时间(hh:mm:ss) DateTime日期与时间組合(yyyy-mm-dd hh:mm:ss) TimeStampyyyymmddhhmmss Year年份yyyy
0 0
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext等类型详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- MySQL中tinytext、text、mediumtext和longtext详解
- Mysql 类型: tinytext, text, mediumtext, longtext
- TEXT、TINYTEXT、MEDIUMTEXT、LONGTEXT选择
- TEXT、TINYTEXT、MEDIUMTEXT、LONGTEXT选择
- mysql中text,longtext,mediumtext…
- 高斯混合模型学习笔记
- iOS_解决模拟器 Error Domain=kCLErrorDomain Code=0
- Linux守护进程的编程方法
- Linux下一种简单易行的cpu benchmark方法
- 关于Linux 环回接口lo的IP地址修改
- MySQL中tinytext、text、mediumtext和longtext详解
- How to Change the MySQL Timeout on a Server
- Unity 内存管理——手机调试Profiler
- 数据库基础入门(四)— — 产品功能实现之数据库架构与用户登录注册
- 基于Windows 7下的 Yii2 安装过程
- oracle如何导入数据库
- 11g RAC 自定义 remote_listener/local_listener
- [翻译完成] 树莓派性能测试
- Spring+SpringMVC+mybatis+easyui整合实例(六)mybatis一对一、一对多关联查询