SELECT * FROM tabname INTO OUTFILE 不支持覆蓋操作,這是MySQL從安全形度考慮的。
mysql> SELECT * FROM `order` INTO OUTFILE '/var/lib/mysql-files/order.txt'; ERROR 1086 (HY000): File '/var/lib/mysql-files/order.txt' already exists