Callable Statement to execute Stored Procedure in MySQL (Gujarati)
In this video, CallableStatment interface is used to execute stored procedure.
Methods such as execute(), executeUpdate() and executeQuery() is used to execute stored procedures.
In this example, there is also a demonstration on how to insert a record using stored procedure, as well as there is also a procedure that return the name of employee from given employee number.
Prepared Statement to execute queries for MySql (Gujarati)
In this video, PreparedStatement interface is used to execute queries and other database operation in database.
Methods such as execute(), executeUpdate() and executeQuery() is used to execute queries related to DDL, DML and respectively.
In this example, there is also a demonstrate regarding reading field values from user using scanner class object. There is also a result set to read values from table using select keyword in queries.
Statement interface is used to execute queries and other database operation in database.
Methods such as execute(), executeUpdate() and executeQuery() is used to execute queries related to DDL, DML and respectively.
In this example, there is also a demonstrate regarding reading field values from user using scanner class object. There is also a result set to read values from table using select keyword in queries.
JDBC Connection for MySql using Type-4 Driver (Gujarati)
MySql Database Connection.
In this video, first the packages related to JDBC is imported, then the jar files related to MySql Database is attached in the project in configure build path, then the using Class.forName() the driver is loaded in memory.
After that Url, User and password are defined.
DriverManager.getConnection(url, user, password) is used to open the connection.
And, finally after the successfully opening the connection, the connection is closed to complete the connection internal processes.