export table query in mysql code example
Example 1: export database mysql
mysqldump -u [username] -p [database-you-want-to-dump] > [path-to-place-data-dump]
Example 2: how to export table data from mysql table in sql format
SELECT * FROM tbl_order INTO OUTFILE 'file save path/filename'