14
当我试图在的shell执行多在mysql的shell
mysql -uroot -ppass mydb <<<EOF SELECT * INTO OUTFILE 'table.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM mytable limit 1; EOF
越来越语法错误执行多MySQL的。
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EOF' at line 1
什么是正确的脚本方式?