Jdbc statements

Jdbc statements

what type of a method is get Connection ()?
View Answers

October 29, 2010 at 10:54 AM

Hello,

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.

Thanks.









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
Advertisements
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
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
DECESION MAKING STATEMENTS
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
jdbc
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
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.ADS_TO_REPLACE_1 SQL INSERT INTO Syntax INSERT
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..._TO_REPLACE_1 this syntax shows how we can use different optin with the select statements
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
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
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,ADS_TO_REPLACE_1 Delete statement in SQL is used to delete partial/all data. Especially delete statement is useful
Avoiding â??!= nullâ?? statements in Java?
Avoiding â??!= nullâ?? statements in Java?  Avoiding â??!= nullâ?? statements in Java
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
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
ModuleNotFoundError: No module named 'flake8-if-statements'
ModuleNotFoundError: No module named 'flake8-if-statements'  Hi...: No module named 'flake8-if-statements' How to remove the ModuleNotFoundError: No module named 'flake8-if-statements' error? Thanks   Hi
ModuleNotFoundError: No module named 'flake8-if-statements'
ModuleNotFoundError: No module named 'flake8-if-statements'  Hi...: No module named 'flake8-if-statements' How to remove the ModuleNotFoundError: No module named 'flake8-if-statements' error? Thanks   Hi
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
Java Control Statements
Java Control Statements     ... the control statements. Different types of control statements: the decision making statements (if-then, if-then-else and switch), looping statements (while, do-while
Hibernate generated SQL statements on console
Hibernate generated SQL statements on console  If you want to see the Hibernate generated SQL statements on console, what should we do?   If you want to see the Hibernate generated SQL statements on console just add
JDBC
JDBC  why we use batch in jdbc
jdbc
jdbc  display the records using index in jdbc
jdbc
jdbc  Hai , Give a steps for jdbc connectivity
Java jdbc connection
Java jdbc connection  Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection
JDBC
JDBC  How to add set of queries in a single query in JDBC
java program using control statements...
java program using control statements...  public class ControlStatements { public static void main(String args[]){ int x=10; if(x==0){ System.out.println("It is zero"); else if(x>0) System.out.println
Objective C if else statements syntax
Objective C if else statements syntax  What is the syntax of if else statements in Objective C?   Using of if else statement in Objective C There is no changes in the syntax format of if else statement. You can write
jdbc
jdbc  please tell me sir.i dont know JDBC connection and how to create table in database
jdbc
jdbc   how to write program to save data and retrieve data from the form in Java
jdbc
jdbc  why do we need to load jdbc drivers before connecting to database
JDBC
JDBC  how to set classpath for eclipse, java, where to copy jdbc connector
JDBC
JDBC  in class.forname which driver name we are writing for the connection from jdbc to sqlserver 2008
jdbc
jdbc  is it possible to use doget & dopost method with jdbc to call in a servlet programe
Jdbc
Jdbc  A java program with jdbc connectivity with insert,delete,update options for name,regno,mark1,mark2,total
JDBC
JDBC  can u send me the code of jdbc how to join two tables that are in relation
jdbc - JDBC
Why JDBC   JDBC used for what
JDBC - JDBC
JDBC - limitations of jdbc  What are the limitations of JDBC
jdbc
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
jdbc
at once.CallableStatement.executeBatch() method is used to execute the batch of statements
jdbc
can you explain callable statement interface in details and exp  can you explain callable statement interface in details and exp?   The CallableStatement interface allows the use of SQL statements to call stored
JDBC
JDBC save a data in the database  I need a code to save a data... between java and mysql using JDBC and saves the data into the database. import... con = null; String url = "jdbc:mysql://localhost:3306/"; String db
JDBC
JDBC code to save a data in the database  I need a code to save... the connection between java and mysql using JDBC and saves the data into the database...!"); Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String db
jdbc
how can we set transaction level through jdbc api  how can we set transaction level through jdbc api   Use Connection.setTransactionIsolation(int) to set the desired tansaction level, which takes one of the 5 arguments
jdbc
how can we call stored procedure using jdbc  how can we call stored procedure using jdbc   Call a Stored Procedure using...(); For more information, visit the following link: JDBC call Stored Procedure
jdbc - JDBC
Java JDBC application  Database Application in Java JDBC
JDBC - JDBC
JDBC Select Count Example   Need an example of count in JDBC
JDBC - JDBC
JDBC -statement types in jdbc  statement types in jdbc
jdbc - JDBC
Loading JDBC driver at runtime  How to load JDBC Driver at runtime

Ads