当前位置:网站首页>MySQL error resolution - error 1261 (01000): row 1 doesn't contain data for all columns
MySQL error resolution - error 1261 (01000): row 1 doesn't contain data for all columns
2022-07-04 07:11:00 【Become a person in the book】
Report a mistake :
Error occurs when importing data !
mysql> load data infile "/myload/passwd"
-> into table tu.user
-> fields terminated by ":"
-> lines terminated by "\n";
ERROR 1261 (01000): Row 1 doesn't contain data for all columnsCause analysis :
because sql_mode Set to strict Pattern , To continue importing, you need to “strict_trans_tables” from sql_mode Removing the .
resolvent :
mysql> show variables like "sql_mode"\G; // Query parameter value
*************************** 1. row ***************************
Variable_name: sql_mode
Value: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
1 row in set (0.00 sec)
mysql> set sql_mode='ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE, // Change the value of the parameter
> NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,
> NO_ENGINE_SUBSTITUTION';
Query OK, 0 rows affected, 1 warning (0.00 sec)
perhaps
mysql> set sql_mode=‘ ’;
# Re import validation !
mysql> load data infile "/myload/passwd" into table tu.user fields terminated by ":" lines terminated by "\n";
Query OK, 21 rows affected, 128 warnings (0.01 sec)
Records: 21 Deleted: 0 Skipped: 0 Warnings: 128
result :
Successful import , Problem solving !
边栏推荐
- 【FPGA教程案例7】基于verilog的计数器设计与实现
- 2022, peut - être la meilleure année économique de la prochaine décennie, avez - vous obtenu votre diplôme en 2022? Comment est - ce prévu après la remise des diplômes?
- Responsive mobile web test questions
- [FreeRTOS] FreeRTOS learning notes (7) - handwritten FreeRTOS two-way linked list / source code analysis
- ABCD four sequential execution methods, extended application
- [GF (q) + LDPC] regular LDPC coding and decoding design and MATLAB simulation based on the GF (q) field of binary graph
- Cochez une colonne d'affichage dans une colonne de tableau connue
- Computer connects raspberry pie remotely through putty
- Uniapp applet subcontracting
- selenium IDE插件下载安装使用教程
猜你喜欢

Chain ide -- the infrastructure of the metauniverse

Master-slave replication principle of MySQL database

响应式——媒体查询

关于IDEA如何设置快捷键集

用于压缩视频感知增强的多目标网络自适应时空融合
![[Valentine's day] - you can change your love and write down your lover's name](/img/ab/402872ad39f9dc58fd27dd6fc823ef.jpg)
[Valentine's day] - you can change your love and write down your lover's name

MySQL storage engine

Google Chrome Portable Google Chrome browser portable version official website download method

Flink memory model, network buffer, memory tuning, troubleshooting

Adaptive spatiotemporal fusion of multi-target networks for compressed video perception enhancement
随机推荐
Selection (021) - what is the output of the following code?
Since DMS is upgraded to a new version, my previous SQL is in the old version of DMS. In this case, how can I retrieve my previous SQL?
The crackdown on Huawei prompted made in China to join forces to fight back, and another enterprise announced to invest 100 billion in R & D
Tar source code analysis 8
"Sword finger offer" 2nd Edition - force button brush question
2022年,或許是未來10年經濟最好的一年,2022年你畢業了嗎?畢業後是怎麼計劃的?
2022, peut - être la meilleure année économique de la prochaine décennie, avez - vous obtenu votre diplôme en 2022? Comment est - ce prévu après la remise des diplômes?
Shopping malls, storerooms, flat display, user-defined maps can also be played like this!
the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘
[thread pool]
Download address of the official website of national economic industry classification gb/t 4754-2017
[freertos] freertos Learning notes (7) - written freertos bidirectionnel Link LIST / source analysis
Redis interview question set
Analysis of tars source code 1
【森城市】GIS数据漫谈(一)
2022 is probably the best year for the economy in the next 10 years. Did you graduate in 2022? What is the plan after graduation?
高薪程序员&面试题精讲系列119之Redis如何实现分布式锁?
【网络数据传输】基于FPGA的百兆网/兆网千UDP数据包收发系统开发,PC到FPGA
[Valentine's day] - you can change your love and write down your lover's name
The difference between synchronized and lock