Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f2U1q2K37641 for ; Thu, 29 Mar 2001 20:52:02 -0500 (EST) (envelope-from pgsql-jdbc-owner@postgresql.org) Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2SCWCw48899 for ; Wed, 28 Mar 2001 07:32:13 -0500 (EST) (envelope-from sugusri76@yahoo.com) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id SAA06720 for ; Wed, 28 Mar 2001 18:11:53 GMT Received: from ecvwall1.wipro.com ([192.168.181.23]) by ecmail.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GAWQRH00.8GG for ; Wed, 28 Mar 2001 18:00:53 +0530 Received: from sugumar ([192.168.230.145]) by platinum.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP id GAWQQ900.VN4; Wed, 28 Mar 2001 18:00:09 +0530 Message-ID: <000801c0b781$9b819980$91e6a8c0@wipro.com> From: "sugumar" To: Cc: Subject: Jdbc driver Date: Wed, 28 Mar 2001 17:51:23 +0530 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C0B7AF.B445B180" X-Archive-Number: 200103/156 X-Sequence-Number: 374 ------=_NextPart_000_0005_01C0B7AF.B445B180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 drive= r connection. thanks, regards=20 sugumar import java.sql.*; import java.io.*; import java.lang.*; import java.net.*; class meeting123=20 { public static void main(String args[]) throws Exception { Class.forName("postgresql.Driver"); Connection con=3DDriverManager.getConnection("jdbc:postgresql://192.168.230= .148/meeting,postgres,postgres"); Statement st=3Dcon.createStatement(); ResultSet rs=3Dst.executeQuery("select * from tbluser"); while(rs.next()) { System.out.println("StartHour:"+rs.getString(1)+"\tStartMin:"+rs.getString(= 2)+"\n"); } }=20 } =20 ------=_NextPart_000_0005_01C0B7AF.B445B180 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
sir ,
      i am using = the=20 following code for connecting postgresql,but this code did not to the = other=20 system database.please send the correct for the driver connection.
thanks,
regards
sugumar
 
import java.sql.*;
import java.io.*;import=20 java.lang.*;
import java.net.*;
 

class meeting123
{
public stati= c void=20 main(String args[]) throws=20 Exception
{
Class.forName("postgresql.Driver");
Connection=20 con=3DDriverManager.getConnection("jdbc:postgresql://192.168.230.148/meetin= g,postgres,postgres");
Statement=20 st=3Dcon.createStatement();
ResultSet rs=3Dst.executeQuery("select * fro= m=20 tbluser");
while(rs.next())
{
System.out.println("StartHour:"+rs.g= etString(1)+"\tStartMin:"+rs.getString(2)+"\n");
}
}=20
}
 
------=_NextPart_000_0005_01C0B7AF.B445B180--