Jdbc statements



Share on Google+Share on Google+

Jdbc statements
1 Answer(s)      7 years ago
Posted in : Java Interview Questions
what type of a method is get Connection ()?
View Answers

October 29, 2010 at 10:54 AM


Its getConnection() method is used to establish a connection to a database. It uses a username, password, and a jdbc url to establish a connection to the database and returns a connection object. A jdbc Connection represents a session/connection with a specific database.

This method creates a Connection object, which is used to create SQL statements and takes a String containing a database connection URL.



Related Tutorials/Questions & Answers:
Jdbc statements
Jdbc statements  what is the use of Callable Statement
Jdbc statements
Jdbc statements  what type of a method is get Connection
creating jdbc sql statements - JDBC
creating jdbc sql statements  I had written the following program...=DriverManager.getConnection("jdbc:odbc:second"); stmt=con.createStatement...)   Hi friend, i think, connection problem. i am sending jdbc
Statements in JDBC - Java Interview Questions
Statements in JDBC  Hi, Explain statement, preparedstatement, callable statement. which is best and why. when to use preparedstatement. plz dont give link . explain ur words with example
JDBC: Insert Record using Prepared Statements
JDBC: Insert Record using Prepared Statements In this section, you will learn how to insert row using Prepared Statements. Insert Record  ... times for different values. It is precompiled SQL Statements which are stored
predicates and statements?
predicates and statements?  Explain about predicates and statements
jdbc define batch updates  define batch updates?exp   JDBC batch update is a collectively called when a group of SQL statements... links: http://www.roseindia.net/jdbc/Jdbc-batch-update.shtml http
a connection is created by using the JDBC, then by default it is in auto- commit mode... where you want to execute a batch of statements, either they should commit at on go... of statements will be rollback, without committing
DECESION MAKING STATEMENTS  The Decision Making statements may be implemented in different forms depending on the complexity of the condition to be tested. Describe various forms of decision making statements in java
The INSERT INTO Statements in SQL?
The INSERT INTO Statements in SQL?  The INSERT INTO Statements in SQL?   Hi, The INSERT INTO statement is used to insert a new row or multiple rows into a table. SQL INSERT INTO Syntax INSERT INTO table_name VALUES
Using Select Statements in JDBC
Using Select Statements in JDBC   ... is concern with Select Statements. You have to just create the connection...; Connection con = null;  String url = "jdbc:mysql://localhost
logical group of data with a number of columns. JDBC ResultSet Example Stored Procedure: A stored procedure is a named group of SQL statements that have been
What is the Delete Statements in SQL?
What is the Delete Statements in SQL?  What is the Delete Statements in SQL?   Hi, Here is the answer, Delete statement in SQL is used to delete partial/all data. Especially delete statement is useful in case
general syntax for a SELECT statements
general syntax for a SELECT statements  Write down the general syntax for a SELECT statements covering all the options   Hi, The general... shows how we can use different optin with the select statements. SELECT select
Executing Set of SQL statements in Java
Executing Set of SQL statements in Java  Hi, I am trying to execute..."); conn=DriverManager.getConnection("jdbc:odbc:drivername", "uid", "pwd...= cstmt.executeQuery(); The procedure has drop temp table statements, select multiple
JDBC Transaction Example
JDBC Transaction Example JDBC Transaction  JDBC transaction is used.... When  you create a connection using JDBC, by default it is in auto... with instruction. How to manage transaction in JDBC? Then Write the Following
Avoiding â??!= nullâ?? statements in Java?
Avoiding ‚??!= null‚?? statements in Java?  Avoiding ‚??!= null‚?? statements in Java
JDBC  why we use batch in jdbc
jdbc  Hai , Give a steps for jdbc connectivity
jdbc  display the records using index in jdbc
Java Control Statements
Java Control Statements       Introduction to Control Statements In this section, we are going to discuss the control statements. Different types of control statements
JDBC  How to add set of queries in a single query in JDBC
jdbc  please tell me sir.i dont know JDBC connection and how to create table in database
jdbc   how to write program to save data and retrieve data from the form in Java
jdbc  why do we need to load jdbc drivers before connecting to database
JDBC  how to set classpath for eclipse, java, where to copy jdbc connector
JDBC  in class.forname which driver name we are writing for the connection from jdbc to sqlserver 2008
jdbc  is it possible to use doget & dopost method with jdbc to call in a servlet programe
Jdbc  A java program with jdbc connectivity with insert,delete,update options for name,regno,mark1,mark2,total
JDBC  can u send me the code of jdbc how to join two tables that are in relation
jdbc  Write a web based student registration application where the students can register online with their enrollment no. You are required to use JSP, Servelet and JDBC


Advertisement null