automatic Export Data From Database to CSV File

巧了我就是萌 提交于 2019-12-13 05:14:31

问题


i have to generate a CSV file of full database/table when any new row comes in table.

so is there any script using i can generate CSV file.

i use MySQL to store data in database from HTML Form.

plz help


回答1:


Finally, I found a beautiful tutorial to export data from Database to CSV File.

Also one answer on Stackoverflow.

sqlcmd -S . -d DatabaseName -E -s, -W -Q "SELECT * FROM TableName" > C:\Test.csv


来源:https://stackoverflow.com/questions/25793794/automatic-export-data-from-database-to-csv-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!