错误信息:ERROR 1064: You have an error in your SQL syntax. Check the manual that corresp onds to your MySQL server version for the right syntax to use near '@FileName fi elds optionally enclosed by '"' terminated by ', mysql> select * into outfile 'mydata.log' fields optionally enclosed by '"' terminated by ',' from user_info; ERROR 1046: No Database Selected
上面那个帖错了。 错误信息:ERROR 1064: You have an error in your SQL syntax. Check the manual that corresp onds to your MySQL server version for the right syntax to use near '@FileName fi elds optionally enclosed by '"' terminated by ',
ERROR 1046: No Database Selected //////////// 在前面加上:use databasename;
mysql> select * into outfile 'mydata.log' fields optionally enclosed by '"' terminated by ',' from user_info;
ERROR 1046: No Database Selected
错误信息:ERROR 1064: You have an error in your SQL syntax. Check the manual that corresp onds to your MySQL server version for the right syntax to use near '@FileName fi elds optionally enclosed by '"' terminated by ',
////////////
在前面加上:use databasename;
?
ERROR 1046: No Database Selected
////////////
在前面加上:use databasename;--------------------------------------------------------------------
问题不在那里,是我多帖了。