gpt4 book ai didi

mysql - 使用的表类型不支持 BLOB/TEXT 列

转载 作者:行者123 更新时间:2023-11-29 06:25:13 24 4
gpt4 key购买 nike

我试图在我的存储过程中创建一个临时表,它从另一个文本表中获取一列数据。但是我得到了

used table type does not support BLOB/TEXT columns

消息。我该如何解决这个问题?这是我的代码,2015Consumer_stage 是包含文本列的表。

CREATE DEFINER=`root`@`localhost` PROCEDURE `uspLoadStateTables`()
BEGIN
DECLARE state varchar(2);
DECLARE rowcount int;

create temporary table statelist(TheState varchar(2)) engine=memory SELECT DISTINCT TRIM(ST) FROM `2015consumer_stage`;

select count(*) into rowcount from statelist;
select TheState into state from statelist;

最佳答案

MySQL 不支持 MEMORY/HEAP 表的 TEXTBLOB。参见 here .支持 VARCHAR(),但您应该尝试使用 CHAR()。无论如何,MySQL 都会将其存储为固定长度。

关于mysql - 使用的表类型不支持 BLOB/TEXT 列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31468080/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com