Simple question is that I want to learn table size in DataGrip.Is there any shortcut or a simple way ..
View table data Open the Database Explorer (View | Tool Windows | Database Explorer). In the database tree, navigate to the table that you want to open. Double-click the table.
This tutorial will show you how to view and edit table and column descriptions using DataGrip tool. Firstable, find in toolbar View -> Tool Windows -> Database or press Alt + 1 key combination. Editing column comment is done in the same way. Right click on column name and select Database Tools -> Modify Comment.
If you need to quickly find the right table in a large database, you can sometimes rely on the table size. To display this information, go to Connection view -> Show statistics info.
This query is a solution:
SELECT table_name,
(data_length + index_length) / power(1024, 2) AS tablesize_mb
FROM information_schema.tables
WHERE 1=1
AND table_name IN ('actor', 'category', 'film', 'film_actor', 'film_category', 'language')
There is now a quick way to do this from the UI.
Right click the table of interest
Select Quick documentation
Scroll down to rows
field
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With