Suvrayan,
Welcome to JavaRanch!
Have you seen Sun's
JDBC tutorial yet? It's an excellent place to get started. It should also give you enough information to come back here with a more specific question.
For example, maybe you are looking for the connection
string?