How to export part of a table as SQL in Adminer?

Mateng picture Mateng · Feb 5, 2013 · Viewed 13.3k times · Source

In Adminer, I can export whole tables with the "Export" menu option. When I enter a query, I can export the results as .CSV or .TSV, but not as SQL.

Is there any option to do so? A plugin or a config switch?

enter image description here

Answer

Jakub Vrána picture Jakub Vrána · Feb 6, 2013

Adminer doesn't offer SQL export of a general SQL query because the query may join more tables which would be impossible to export to SQL.

To export a subset of rows in a single table, go to the Select view of this table, filter the results as you wish and check the rows you want to export (or check 'whole result' to export all rows in the result). Then use the Export button under the table.