Skip to content

mysql blob类型的查询和更新

L edited this page Sep 17, 2021 · 2 revisions

摘抄自mysql blob类型转string的sql处理方式

查询

select CONVERT (columnName USING utf8) AS CONTENT from tableName;

新增

INSERT INTO tableName(columnName ) VALUES (cast('<p>中文英文html</p>'as char));

更新

update tableName set columnName =cast('<p>中文英文html</p>'as char);
Clone this wiki locally