问题遇到的现象和发生背景
导入txt数据到Mysql提示Error Code: 1366. Incorrect decimal value: for column at row 1
操作环境、软件版本等信息
win10专业版,MySQL Workbench 8.0,txt-(数据格式utf8)
尝试过的解决方法
方法1
sql
set character_set_server =utf8;
set character_set_database=utf8;
set character_set_connection=gbk;
set character_set_client=gbk;
sql
show variables like 'character%';
alter table ganrao0223.ganrao1 convert to character set utf8;
show create table ganrao1;
set character_set_server=utf8mb3;
sql
show variables like 'character%';
alter table ganrao0223.ganrao1 convert to character set utf8;
show create table ganrao1;
set character_set_server=utf8mb3;
我想要达到的结果
实现导入txt中数据至数据库表