Storing field names of a table when storing query results in a text file ???
Hello
I'm saving the result of a MYSQL query I execute into a text file (to display to the user as a report) using
Select ... into outfile
is there a way to store the table names used in the query and the field/column names of the result of the query in that same text file (above the rows) so that it is more intuitive for the user when they look at the report generated ?