Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What are the steps in the JDBC connection?
What are the steps in the JDBC connection?
✍: Guest
While making a JDBC connection we go through the following steps :
Step 1 : Register the database driver by using :
Class.forName(" driver classs for that specific database" );
Step 2 : Now create a database connection using :
Connection con = DriverManager.getConnection(url,username,password);
Step 3: Now Create a query using :
Statement stmt = Connection.Statement("select * from TABLE NAME");
Step 4 : Exceute the query :
stmt.exceuteUpdate();
2013-06-15, 2244👍, 0💬
Popular Posts:
when should the volatile modifier be used? The volatile modifier is a directive to the compiler's op...
How Is the Width a Parent Element Related to Child Elements? - CSS Tutorials - Understanding Multipl...
What will be printed as the result of the operation below: main() { int x=10, y=15; x = x++; y = ++y...
What are shared (VB.NET)/Static(C#) variables? Static/Shared classes are used when a class provides ...
How To Process Query Result in PL/SQL? - Oracle DBA FAQ - Introduction to PL/SQL You can run queries...