SQL 如下:
SET @logpath = ( SELECT CONCAT( 'tmp/52_setUser_',
replace(replace(replace(NOW(),'-',''),':',''),' ','') ,'.log' ) );
SELECT *
FROM pp
into outfile @logpath
一直出現#1064 - 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
'@logpath' at line 3
但事實在是不知道該怎麼解決、不知是否有哪個地方打錯了?