Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about jdbc connection

 
venkat suresh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am new to jdbc, how to connect with either SQL or oracle. Plz give me details of clearly...
thanks..
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are alot of sample in the web .
but as an example here :

take a look at this code :



this will connect to mysql
the rule are the same for sql server and oracle .just driver and url will be different.
the above class is almost a complete class for jdbc connection management.

for more information look at :

http://www.javaolympus.com/index.jsp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic