Jdbc driver

From: "sugumar" <sugusri76(at)yahoo(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Cc: <sugusri76(at)yahoo(dot)com>
Subject: Jdbc driver
Date: 2001-03-28 12:21:23
Message-ID: 000801c0b781$9b819980$91e6a8c0@wipro.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

sir ,
i am using the following code for connecting postgresql,but this code did not to the other system database.please send the correct for the driver connection.
thanks,
regards
sugumar

import java.sql.*;
import java.io.*;
import java.lang.*;
import java.net.*;

class meeting123
{
public static void main(String args[]) throws Exception
{
Class.forName("postgresql.Driver");
Connection con=DriverManager.getConnection("jdbc:postgresql://192.168.230.148/meeting,postgres,postgres");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from tbluser");
while(rs.next())
{
System.out.println("StartHour:"+rs.getString(1)+"\tStartMin:"+rs.getString(2)+"\n");
}
}
}

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message chris markiewicz 2001-03-28 12:56:59 fastpath error?
Previous Message martin.chantler 2001-03-28 10:46:52 Re: Migrating from a DB2/400 to Postgres.