Skip site navigation (1) Skip section navigation (2)

jdbc small example

From: soundar rajan <psrajan(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: jdbc small example
Date: 1999-10-20 21:43:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Hi all,

If someone can tell me how to start with, connecting
java to postgresql.  I suppose I'm right.  But, I get
some errors.

import java.sql.*;

public class jd{
	public static void main(String[]a rgs){
		String url = "jdbc:postgresql:xxx";
		connection c = Dri..M.getConn( );
		Statement stmt= conn.createStmt():
		ResultSet rs = stmt.execQu();

The problem is ... I get a connection error, even
though the db is running at the backend.

Helps appreciated

Do You Yahoo!?
Bid and sell for free at

pgsql-general by date

Next:From: soundar rajanDate: 1999-10-20 21:44:42
Subject: jdbc small example
Previous:From: soundar rajanDate: 1999-10-20 21:10:45
Subject: jdbc small example

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group