Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Displaying/Keeping previous Query Results VS Code

Is there a way to keep previous query results when running new scrips?

Whenever I run a new script in the same window the new results overwrite the old ones, but ideally I'd like to keep the old ones and a new tab would open with the recent output.

VS Code snip

I'm making a switch from SQL Developer to VS Code, where I was previously able to have multiple results kept, when re-running a script (see pic2)

Query results from SQL developer

I tried the SQL developer extension for VS Code and MySQL, amongst browsing all the settings. Unfortunately, I cannot find the right setting for what I need.

like image 409
Eliza Avatar asked Aug 29 '26 20:08

Eliza


1 Answers

You can do this via a SQL Notebook.

Right-click on a connection.

Create your query, run it.

Add another code block, repeat...

enter image description here

like image 70
thatjeffsmith Avatar answered Aug 31 '26 12:08

thatjeffsmith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!