cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks JDBC driver multi query in one request.

shkelzeen
New Contributor II

Can I run multi query in one command using databricks JDBC driver and would databricks execute one query faster then running multi queries in one script?  

2 REPLIES 2

Hi Kaniz

Thank you for you reply. I did mean the jdbc driver for external table I mean the jdbc driver which is used to connect to databricks, is there any property I can send on the JDBC connection to databricks from my service which will allow multipart query run in the same command.

NandiniN
Databricks Employee
Databricks Employee

Yes, you can run multiple queries in one command using the Databricks JDBC driver.The results will be displayed in separate tables.

When you run the multiple queries, they are all still individual queries. Running multiple queries in a script will not slow down the queries response time.

If you are using a notebook for readability and debugging purposes having them in separate cells would be nice, but if you are calling a script, they can be written in the sequential order, and they would run sequentially.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group