How to quick view tables in DataGrip?

馋奶兔 提交于 2019-12-01 14:34:07

问题


In sql express I could setup query shortcuts, so I simply create a "Select * from " shortcut and when I press it with the table name selected it shows me the select result

There's any way I can quick view the table content selecting only the table name in a script?


回答1:


If I got you right, there are several ways to do what you want:

  1. Ctrl+N (Cmd+O for Mac) → type the name of the table, press Enter

  2. If the cursor is on the name of the table inside the script, press F4.

  3. If you are in the query console, the quick way to type "SELECT * FROM" is to type "sel" and press Tab. Then put the name of the table and run the query.

  4. In any place, wether it's SQL or database explorer, press Ctrl+Q (F1 for Mac) and you will see the quick documentation window.




回答2:


Another quick solution can be to put your cursor in the name of your table and press CTRL+Q, this will open the quick documentation, it will show the table structure with the first 10 rows at the end.

I find this faster than running the query.



来源:https://stackoverflow.com/questions/38742700/how-to-quick-view-tables-in-datagrip

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