简体   繁体   中英

DataTables Export all the records from MySQL Table

Normally if you want to export data in .csv format as an example, using DataTables the Grid with the records (which records are retrieved from a MySQL Table ) should be exported.

I would like to ask although my Grid show some records(which I want only to show) how can I retrieve all the records from the Table which flood the Grid with some of them ?

在此处输入图片说明

https://www.datatables.net/extensions/tabletools/

The CSV exporter will happily download the entire dataset in the table, not just the visible ones, so in your example it will download all 50 entries, not just the 10 you can see.

If you want to download the contents of a MySQL table in CSV format, you should perhaps consider using phpMyAdmin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM