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

若如初见. 提交于 2019-12-06 03:59:53

问题


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?


回答1:


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.




回答2:


if you click on export then on that page see there is a radio button named dump. put no of rows you wanted to pick up and starting record index number. then you will get your expected result




回答3:


In current version it is possible with Search

  1. Select column
  2. Select SQL as mark
  3. Into value field fill subquery IN (SELECT id FROM ...)



回答4:


Here is how I did this:

  1. Go to Adminer-> Click on Dump in top left side.
  2. Output-> check save radio button
  3. Format-> check SQL radio button
  4. Go to below Export button
  5. Mark checkboxes of Tables (if you want to data then mark checked Data)
  6. If you want 1 table then mark one checkbox of a table.
  7. Click on Export button.

Here we go :), Coool ;)



来源:https://stackoverflow.com/questions/14705886/how-to-export-part-of-a-table-as-sql-in-adminer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!