Long Data Types之创建表

创建大容量数据表
本文介绍了如何使用LONGVARBINARY和LONGVARCHAR数据类型创建能够存储最大达32,000,000字节数据的表。这些数据类型适用于存储非结构化数据、在线评论或小型日志文件等。

创建table:create table links(text long varchar); 

               create table test(file long varbinary); 

其中text和file是列名称。

Long Data Types

Store data up to 32,000,000 bytes:

  • LONG VARBINARY—Variable-length raw-byte data, such as IP addresses. LONG VARBINARY values are not extended to the full width of the column.
  • LONG VARCHAR—Variable-length strings of letters, numbers, and symbols. LONG VARCHAR values are not extended to the full width of the column.

The maximum size for the LONG data types is 32,000,000 bytes. Use the LONG data types only when you need to store data greater than 65,000 bytes, which is the maximum size for VARBINARY and VARCHAR data types. Such data might include unstructured data, online comments or posts, or small log files.

转载于:https://www.cnblogs.com/reborn2012/p/3508868.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值