Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to quick view tables in DataGrip?

Tags:

datagrip

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?

like image 754
Tgo1014 Avatar asked Aug 03 '16 11:08

Tgo1014


People also ask

What do you look for in DataGrip?

In DataGrip, you could be looking for things like: — Database objects: tables, views, procedures, columns and so on. — Data: enough said. — Code: for example a piece of code in a big script or the source code for a database object.

How do I preview a query in DataGrip?

To close the pane where the query is shown, press Escape. When you insert, delete, or modify data in a table editor, you can preview the query that DataGrip uses to perform selected operations. To preview the query, click the Preview pending changes button () on the toolbar.

What are the advantages of the DataGrip database explorer?

You can view the structure of your databases and perform other tasks in the database explorer . Here are the advantages of the DataGrip database explorer that our users value most.

How to view foreign keys using DataGrip?

This tutorial will show you how to view foreign keys using DataGrip. From View -> Tool Windows in toolbar select Database (or press Alt + 1). Fig. 1. Database in toolbar In opened explorer search for table which foreign keys you want to see. You can identify foreign keys in two ways:


3 Answers

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-clik 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, wether it's SQL or database explorer, press Ctrl+Q (F1 for Mac) and you will see the quick documentation window.

like image 110
moscas Avatar answered Oct 21 '22 03:10

moscas


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.

like image 44
mucio Avatar answered Oct 21 '22 03:10

mucio


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

like image 3
Ramin Melikov Avatar answered Oct 21 '22 04:10

Ramin Melikov