Computer Science, asked by snehaldongare15, 6 months ago

what is correct syntax of establishing
connection with database ​

Answers

Answered by shabanbegam143
5

Answer:

The following 5 steps are the basic steps involve in connecting a Java application with Database using JDBC.

Register the Driver

Create a Connection

Create SQL Statement

Execute SQL Statement

Closing the connection

Explanation:

please follow me and like me

Answered by brainlysme9
0

Syntax of establishingconnection with database ​is, Java DB: jdbc:derby:testdb;create=true

Here testdb is the name of the database to connect to, and create=true instructs the DBMS to create the database. This URL establishes a database connection with the Java DB Embedded Driver.

Similar questions