आप कुछ पसंद कर सकते हैं :
SET @sql_text =
CONCAT (
"SELECT * FROM `tbl_user` into outfile '/xampp/htdocs/mysite/reports-"
, DATE_FORMAT( NOW(), '%Y%m%d')
, ".csv'"
);
PREPARE s1 FROM @sql_text;
EXECUTE s1;
DROP PREPARE s1;