Export data from Mysql table to .CSV file




My-SQL Query for Export data from table to .CSV file





SELECT * INTO OUTFILE '/usr/tmp/<filename>.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM <TableName>



*TableName = Name of your SQL Table

*/usr/tmp/ <filename>.csv = path and name of the .csv file



*note path must be exists

Comments

Popular posts from this blog

Android App Version Update using the following cordova cli commands

75 inspirational quotes that will change your life

Retrieval Image From DataBase and Display on WebPage by Using Servlets.