I am working on a system where i need to select millionsof records from mysql and there is no key is defined on that table as there is mass inserting and updating work simultaneously .
So I use this command to a genrate csv file from selected data and its working for me in great way .
SELECT *
INTO OUTFILE 'E:\\31october\\SP\\Export\\xyz.csv'
FIELDS
TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\n'
FROM tblspmaster;
but my problem is i also have to update the selected records and needs to show those records on aspx
page . if i run select its just running and running .
So I have two questions
How can I update another fields in that table using INTO OUTFILE
of mysql .
Is it possible that instead of showing records on web page from mysql response i just use this csv file to bind my gridview ? or right custom HTML ?
if you want show million of records the best way is "slickgrid", may be it will help you.
https://github.com/mleibman/SlickGrid
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.