[MySQL]BLOB/TEXT column ‘xxx‘ used in key specification without a key length

报错信息

SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'xxx' used in key specification without a key length

原因:

MySQL的唯一索引不支持text类型的字段!

相关推荐
陈卓41013 天前
索引——高效查询的关键
数据库·sql·mysql·索引
hqxstudying14 天前
MySQL 数据库索引详解
mysql·优化·索引
G皮T25 天前
【Elasticsearch】一个图书馆的案例解释 Elasticsearch
大数据·elasticsearch·搜索引擎·全文检索·kibana·索引·index
小陈又菜1 个月前
SQL Indexes(索引)
数据库·sql·索引
G皮T1 个月前
【Elasticsearch】Elasticsearch 核心技术(一):索引
大数据·elasticsearch·kibana·es·索引·索引别名·索引模板
聪明的墨菲特i2 个月前
SQL进阶知识:四、索引优化
数据库·sql·mysql·database·索引·db2
在努力的韩小豪3 个月前
B树和B+树的区别(B Tree & B+ Tree)
数据结构·数据库·b树·b+树·索引·数据库索引
gywl3 个月前
【MySQL】索引 & 事务
数据库·mysql·事务·索引·隔离性
伊织code3 个月前
uv - 配置 [官方文档翻译]
pip·配置·环境变量·索引·uv·configure·.env
比花花解语3 个月前
SQL中的索引是什么
数据库·sql·索引