JDBC: Executing Statements
Java
| Beginner
- 14 videos | 1h 24m 16s
- Includes Assessment
- Earns a Badge
Java Database Connectivity (JDBC) offers a number of ways in which SQL queries can be executed using a number of built-in objects. This demo-based course covers the use of the fundamental JDBC objects required to set up and manage database connections from a Java app and to execute queries. You will cover the use of Properties objects to load connection details, and then the use of the Statement and PreparedStatement instances to run SELECT, INSERT, DELETE and UPDATE queries against a database from a Java app.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseIdentify the different ways to specify connection details when connecting to a database using jdbcUse database connection details in a properties file to set up a connection to a database using jdbcAdopt a datasource object to create a connection with a databaseExecute a sql query to create a database table from a java appRun a select query against a database and access the returned tabular data in a jdbc resultset objectAdd rows to a database table by running an insert query from a java app
-
Modify the contents of a database table from a java app by executing update and delete queriesDrop a table and database from a java appRecognize the limitations of the statement object when several executions of similar queries are involvedOptimize the execution of similar queries by parametrizing them with preparedstatementsRecall the types of exceptions that could occur when passing incorrect parameters to a preparedstatementIdentify some of the exceptions that could be thrown when using jdbc to work with databasesSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 19s
-
6m 16sIn this video, find out how to identify the different ways to specify connection details when connecting to a database using JDBC. FREE ACCESS
-
7m 52sIn this video, you will use database connection details from a properties file to set up a connection to a database using JDBC. FREE ACCESS
-
5m 57sIn this video, you will learn how to create a connection to a database using a DataSource object. FREE ACCESS
-
8m 42sIn this video, you will learn how to execute a SQL query to create a database table from a Java application. FREE ACCESS
-
7m 19sDuring this video, you will learn how to run a SELECT query against a database and access the tabular data returned in a JDBC ResultSet object. FREE ACCESS
-
4m 37sLearn how to add rows to a database table by running an INSERT query from a Java application. FREE ACCESS
-
6m 37sIn this video, you will learn how to modify the contents of a database table from a Java app by executing UPDATE and DELETE queries. FREE ACCESS
-
6m 36sIn this video, you will learn how to drop a table and database from a Java app. FREE ACCESS
-
6m 58sUpon completion of this video, you will be able to recognize the limitations of the Statement object when several executions of similar queries are involved. FREE ACCESS
-
7m 51sIn this video, you will learn how to optimize the execution of similar queries by parametrizing them with PreparedStatements. FREE ACCESS
-
2m 37sAfter completing this video, you will be able to recall the types of exceptions that could occur when passing incorrect parameters to a PreparedStatement. FREE ACCESS
-
9m 9sDuring this video, you will learn how to identify some of the exceptions that could be thrown when using JDBC to work with databases. FREE ACCESS
-
1m 28s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.