Search code examples
oracleideoracle-sqldeveloperdatagrip

How to added the SQL query used generate the excel file in DATAGRIP IDE?


I'm a SQL developer user, usually, I extract data from Oracle database and store them into excel files on a daily basis, the nice thing about Oracle's SQL Developer when exporting the file into excel file, you get two worksheets one for your data, and another worksheet contain the SQL query that used to generate this report.

Now I'm using DATAGRIP IDE from JetBrains, I noticed when I export the file into excel sheet I only get the data and I don't the SQL query that I used to generate this excel file. is there any way to add the SQL query to the exported file?

enter image description here


Solution

  • There is no possibility to include the SQL tab automatically. But every grid has it's own "View Query" option where you can see and copy the needed SQL.

    enter image description here

    To have this tab, please create a feature request here: https://youtrack.jetbrains.com/issues/DBE