this is the source. and yes!! Employee.class exist and my
CLASSPATH get the path of the JDBCDriver is a classes12_01.zip
.



i'dont know why is not Work?!
import java.sql.*;



class Employee
{
public static void main (String args [])
throws SQLException
{
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());



Connection conn =
DriverManager.getConnection
("jdbc:oracle:thin:@130.102.1.100:1521:pr80",
"conta", "conta98");



Statement stmt = conn.createStatement ();



ResultSet rset = stmt.executeQuery ("select
nomemp from sctemp");



while (rset.next ())
System.out.println (rset.getString (1));
}
}





___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


Reply via email to