如何使用特定字符串启动MySQL outfile生成的文件?
我目前正在使用以下查询:
SELECT * FROM rmssettings
INTO OUTFILE 'F:\\Assignment\\VIEWS1.sql'
FIELDS TERMINATED BY ',' LINES STARTING BY 'Insert' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\r\n';
答案 0 :(得分:0)
你想要开始的字符串是什么样的?
你可以这样做:
SELECT "foo, bar, baz, hello\n", rmssettings.* FROM rmssettings
INTO OUTFILE 'F:\\Assignment\\VIEWS1.sql'
...