Generating sql insert into for DataGrip

Oxobo picture Oxobo · Jun 18, 2018 · Viewed 15.3k times · Source

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?

Answer

moscas picture moscas · Jun 20, 2018

Choose SQL Insert extractor in the drop-down menu.

enter image description here

Them you'll be able to copy-paste data as a bunch of INSERTS. Or use Dump button next to the extractor.

enter image description here