TiDB Version: 7.5.0
Question: After entering the database and editing the SQL, how can I export the query results to a specified file?
In MySQL, you can check the value of secure_file_priv, which is the default export path, by executing show global variables like ‘%secure%’;. However, executing this SQL in TiDB does not display secure_file_priv.
Only two steps are needed to complete it. If you want to export and generate an Excel file in the application, it’s better to leave it to the developers to implement.