mysql中的Load data的使用方法,需学习Load data使用的朋友可以参考下
测试把txt文件导入至mysql数据库中:
table:
txt文件:D:/data.txt ()
txt中使用 '\N' 描述null值。
导入数据:
代码如下:
load data local infile 'D:/data.txt' into table pet
lines terminated by '\r\n' ignore 1 lines;
应用mysql版本:
Stellungnahme:Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn