insertsql-insertdatagrip

Generating sql insert into for DataGrip


When you run a query (a SELECT statement) in the console, the data retrieved from the database are shown in table format in the Result pane of the Database Console tool window.

I've searched through datagrip Help and I'm just wondering if there is anyway out there that can be used to generate INSERT INTO scripts for a tables' content or rows in table format?


Solution

  • Choose SQL Insert extractor in the drop-down menu.

    enter image description here

    Then you'll be able to copy (Ctrl/Cmd+C) data as a bunch of INSERTS. Or use Export button next to the extractor.

    enter image description here