Join David Gassner for an in-depth discussion in this video Managing data with updatable result sets, part of Java: Database Integration with JDBC.
I have shown so far how to do inserts, updates, and deletes using SQL statements and the prepared statement object.…There's an alternative in JDBC the updatable result set, where you get a result set from the…database and market as updatable, then change the data directly in the result set.…You can do inserts, updates, and deletes with this approach.…Whether it's a good idea depends on your circumstances and your database management system.…Not all database management system supports updatable result sets, and if you're working…with a very large result set, it can cause performance issues.…
But in a small-scale application, or when you're only dealing with one row at a time, an updatable…result set programming approach can be useful, I'll demonstrate how to update a row of data…using an updatable result set. I'm working in a project called UpdatableRS.…The state of this project is similar to the update exercise that I did previously, there…is an update method with an SQL statement, it has three placeholders, two strings for…
Author David Gassner explains how to choose a JDBC driver and connect to one or more databases. He also provides detailed instructions on reading, selecting, and updating data; calling stored procedures; managing data via JavaBean classes or with prepared statements; and working with metadata.
- Importing a MySQL database
- Connecting to databases
- Handling JDBC exceptions
- Looping through result sets
- Limiting the number of fetched rows
- Filtering data with prepared statements
- Calling stored procedures
- Inserting, updating, and deleting rows with prepared statements
- Using a persistent database connection
- Committing and rolling back transactions
Skill Level Intermediate
1. Installing Software
2. Getting Started with JDBC
3. Managing Database Resources
Handling JDBC exceptions7m 7s
4. Reading Data
5. Managing Data
6. Using Metadata
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.