MySQL导入TxT数据文件和格式化输出

MySQL导入语法:

LOAD DATA INFILE '文件地址' INTO TABLE 表名 FIELDS TERMINATED BY '字段切割符 ' LINES TERMINATED BY '行切割符' (字段1,字段2,....如果不填则按字段顺序导入)

格式化输出:

后面加Select * from tb_name\G;

参考:http://blog.csdn.net/liuhaixian/article/details/3856113

参考2:http://blog.csdn.net/piaolankeke/article/details/6272214

参考3:http://www.jz123.cn/text/2046635.html

参考4:http://www.hkcode.com/linux-bsd-notes/188

你可能感兴趣的:(mysql,table)