export in mysql

1. export in mysql in txt file 

SELECT * FROM  MyTable INTO OUTFILE  'C:\\FileName.txt' 

2.  export in mysql in csv file 

SELECT * FROM table1  INTO OUTFILE 'c:///mytable.csv' FIELDS ESCAPED BY '""' TERMINATED 
BY ','  ENCLOSED BY '"' LINES TERMINATED BY '\r\n' 

3. . export in mysql in excel file


Comments

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress

PHP Script for sending mail with attachment file