简体   繁体   English

DataTables从MySQL表导出所有记录

[英]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. 通常,如果您要导出.csv格式的数据作为示例,则应使用DataTables导出带有records (从MySQL Table中检索到的recordsGrid

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 ? 我想问一下,尽管我的Grid显示了一些记录(我只想显示),但我如何才能从表中检索所有记录呢?

在此处输入图片说明

https://www.datatables.net/extensions/tabletools/ 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. CSV导出器将愉快地下载表中的整个数据集,而不仅仅是可见的数据集,因此在您的示例中,它将下载所有50个条目,而不仅仅是您可以看到的10个条目。

If you want to download the contents of a MySQL table in CSV format, you should perhaps consider using phpMyAdmin 如果要以CSV格式下载MySQL表的内容,则应该考虑使用phpMyAdmin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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