Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 661
Oxobo Avatar asked Jun 18 '18 12:06

Oxobo


People also ask

How to generate INSERT query from DataGrip?

Bookmark this question. Show activity on this post. 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.

How do I create a SQL DataGrip file?

In the list of objects, select the object that you want to create. Right-click a directory of the DDL data source in the Files tool window (View | Tool Windows | Files) and select New | SQL File.


1 Answers

Choose SQL Insert extractor in the drop-down menu.

enter image description here

Them 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

like image 126
moscas Avatar answered Oct 11 '22 11:10

moscas