How to export a custom SQL Query in PrestaShop 1.5

In our last article in the Working with SQL Manager course we went over viewing your custom query results. We will now go over how to export your query. This allows you to export a CSV file of the results. Follow the steps below to learn how to export your query in PrestaShop 1.5

Exporting custom SQL query results in PrestaShop 1.5

  1. Log into your PrestaShop 1.5 dashboard.
  2. Using the top menu bar, hover over the Advanced Parameters tab and click on the SQL Manager option from the menu.
  3. You are now on the SQL Manager page. From the custom query list, find the one you want to view results for and click on the Export icon. This icon looks like a piece of paper with a green arrow pointing upwards.
    export-file
  4. Once you click on the icon yuor CSV file will be saved to your local computer. Depending on your browser, you may be prompted with a pop up box to save your CSV file. In that case, click on OK to save the file to your computer.
  5. Once saved, you can open the file with your favorite text editor. Below is a sample of what our test CSV file looks like. The first set of data is the column headers after which you can see the data rows, all separated by a semi-colon delimiter.
    view-results

Comments

It looks like this article doesn't have any comments yet - you can be the first. If you have any comments or questions, start the conversation!

Was this article helpful? Let us know!