How to view table contents in Mysql Workbench GUI?

左心房为你撑大大i 提交于 2019-12-03 10:24:51

问题


How can I view table contents in Mysql workbench GUI? I mean, not from command line.


回答1:


Open a connection to your server first (SQL IDE) from the home screen. Then use the context menu in the schema tree to run a query that simply selects rows from the selected table. The LIMIT attached to that is to avoid reading too many rows by accident. This limit can be switched off (or adjusted) in the preferences dialog.

This quick way to select rows is however not very flexible. Normally you would run a query (File / New Query Tab) in the editor with additional conditions, like a sort order:




回答2:


Inside the workbench right click the table in question and click "Select Rows - Limit 1000." It's the first option in the pop-up menu.




回答3:


To get the convenient list of tables on the left panel below each database you have to click the tiny icon on the top right of the left panel. At least in MySQL Workbench 6.3 CE on Win7 this worked to get the full list of tables.

See my screenshot to explain.

Sadly this icon not even has a mouseover title attribute, so it was a lucky guess that I found it.




回答4:


Select Database , select table and click icon as shown in picture.




回答5:


You have to open database connection, not workbench file with schema. It looks a bit wierd, but it makes sense when you realize what you are editing.

So, go to home tab, double click database connection (create it if you don't have it yet) and have fun.




回答6:


After displaying the first 1000 records, you can page through them by clicking on the icon beside "Fetch rows:" in the header of the result grid.




回答7:


All the answers above are great. Only one thing is missing, be sure to drag the grey buttons to see the table (step number 2):



来源:https://stackoverflow.com/questions/18644812/how-to-view-table-contents-in-mysql-workbench-gui

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