How to quick view tables in DataGrip?
Asked Answered
G

3

17

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?

Grandstand answered 3/8, 2016 at 11:46 Comment(0)
J
25

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 the cursor is on the name of the table inside the DB explorer, you can double-click it or press F4.

  4. 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.

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

Jonathonjonati answered 4/8, 2016 at 8:47 Comment(0)
V
12

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.

Van answered 20/11, 2017 at 10:27 Comment(3)
the best way for sureHarlequinade
FWIW, on my Mac F1 is the hotkey for this - probably depends on your hotkey scheme. Right-click and choose "Quick Documentation" works too. Personally I found Ramin's answer below (double click on table name in left pane) the most convenient.Meredithmeredithe
@mucio. I just want to say that you are my hero for the week. Thank you!Fruitage
U
3

Double-clicking on a table in the left pane will open the data for the table.

Ulotrichous answered 1/10, 2020 at 20:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.