Save MySQL query results into a text or CSV file
<br /><br />Given a query such as <br />SELECT order_id,product_name,qty FROM orders<br /><br />which returns three columns of data, the results can be placed into the file /tmo/orders.txt using the query:<br />SELECT order_id,product_name,qty<br /> F
复制链接