mysql小常识

mysql小知识

mysqlimport导入

如把文件test导入到表test中

create table test(

   t1 int,

   t2 varchar(32)

)

文件test:

1,aaa

2,bbb

导入命令:

./mysqlimport -uroot –fields-terminated-by=, testdb /data/test

–fields-terminated-by=,表示字段以,分隔,testdb是数据库名,这里不需要指定表名,文件名test和表名一致即可

mysql小常识

相关文章:

你感兴趣的文章:

标签云: