Introduction:

SQL Notebook is a powerful feature of the SQL Developer Extension for VS Code that offers an alternative to SQL Worksheets that build up a series of queries with Markdown, similar to user defined reports. It works the same way as Jupyter notebook to execute python code.

Pre-Requisite:

SQL Developer extension for VS Code installed and connected with Oracle database. See my last blog post Connect to Oracle Database with VS Code using SQL Developer Extension and SQLcl

Work with SQL Notebook

Right click on your connection and click Open SQL Notebook

Apex

It will open SQL Notebook into a new editor with unsaved .sqlnb file. Looks similar to Jupyter notebook.

Apex

SQL notebook features:

1. Code completion feature:

Apex

Apex

2. Generate Query

We can generate query using “Generate” feature in SQL notebook by using natural language.

Click on Generate and ask any question related to DB (If you see, it is using GPT-5 mini) model.

Apex

Once we get the response, Click Accept

Apex

Now run the query

Apex

3. Another feature is Markdown Click on Markdown and a markdown cell will create

Apex

Now write comment or description and click on the right check symbol

Apex

Apex

4. Also, we can run any select statement and the output is shown in grid form, which is easy to read.

Apex


<
Previous Post
Connect to Oracle Database with VS Code using SQL Developer Extension and SQLcl
>
Next Post
Chat with Oracle Database in natural language with SQLcl MCP Server :