By using the below code you can export your data from the database to excel file.
When you run the below code, the excel file get generated and get downloaded to the client machine.

export data to excel file (.xls format)
Tagged on:

Leave your comment