Check out example codes for "how to export table data from mysql table in sql format". It will help you in understanding the concepts better.

Code Example 1

SELECT * FROM tbl_order INTO OUTFILE 'file save path/filename'

Code Example 2

mysqldump db_name tbl_name;

Learn ReactJs, React Native from akashmittal.com