41. Explain Basic Steps in writing a Java program using JDBC

Basically a Java program implementing JDBC performs the following functions:

  • Load a JDBC driver.

  • Establish a database connection.

  • Optionally interrogate the database for capability subset.

  • Optionally retrieve schema metadata information.

  • Construct a SQL or callable statement object and send queries or database tasks.

  • Execute the database tasks or process resultsets.

  • Close the statement object and resultset.

  • Close the connection.

Advertisements

2 Responses

  1. […] Close the statement object and resultset.·         Close the connection. Add comment September 8th, […]

  2. Hi there Dear, are you genuinely visiting this website regularly, if so then you will definitely get good know-how.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: