1265,“第1218行的列'name'的数据被截断了

时间:2019-03-18 13:46:04

标签: mysql

我有下表:

desc tr_tmp;
+-------+------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+------+------+-----+---------+-------+
| aya   | text | NO   |     | NULL    |       |
+-------+------+------+-----+---------+-------+
1 row in set (0.002 sec)

但是当我通过:从文件加载数据时

LOAD DATA INFILE '/home/mohsen/codes/haq/translation-tmp/ber.mensur.txt'
INTO TABLE tr_tmp  
FIELDS TERMINATED BY '' 
ENCLOSED BY '"'  
LINES TERMINATED BY '\n' (aya);

我收到以下警告:

/usr/local/lib/python3.7/dist-packages/pymysql/cursors.py:329: Warning: (1265, "Data truncated for column 'aya' at row 1218")
  self._do_get_result()
/usr/local/lib/python3.7/dist-packages/pymysql/cursors.py:329: Warning: (1265, "Data truncated for column 'aya' at row 1266")
  self._do_get_result()
/usr/local/lib/python3.7/dist-packages/pymysql/cursors.py:329: Warning: (1265, "Data truncated for column 'aya' at row 1611")

上述警告后,无法加载文件的其余部分。

0 个答案:

没有答案