E
e01osama
hi,
I have installed Oracle 9i, then create a database, fine,
I wrote a java programe to connect databade. it also working...
here is the programe
================================================================
import java.sql.*;
class Display
{
public static void main(String args[])
{
Connection con;
try
{
try
{
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
con =
DriverManager.getConnection("jdbcracleciIFS","sys
as sysdba","abc123");
System.out.println("Connection is
succes....");
CallableStatement proce =
con.prepareCall("{call insert_()}");
System.out.println("Call insert ....");
proce.executeUpdate();
}
catch (SQLException sqlex)
{
System.out.println("SQL
exception"+sqlex);
}
}
catch (Exception e)
{
System.out.println("Unknown Exception"+e);
}
}
}
=======================================================================
this will insert vales to test table. now i want to run select query
from the test table.
I dont know how to do that.....
help me....
I have installed Oracle 9i, then create a database, fine,
I wrote a java programe to connect databade. it also working...
here is the programe
================================================================
import java.sql.*;
class Display
{
public static void main(String args[])
{
Connection con;
try
{
try
{
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
con =
DriverManager.getConnection("jdbcracleciIFS","sys
as sysdba","abc123");
System.out.println("Connection is
succes....");
CallableStatement proce =
con.prepareCall("{call insert_()}");
System.out.println("Call insert ....");
proce.executeUpdate();
}
catch (SQLException sqlex)
{
System.out.println("SQL
exception"+sqlex);
}
}
catch (Exception e)
{
System.out.println("Unknown Exception"+e);
}
}
}
=======================================================================
this will insert vales to test table. now i want to run select query
from the test table.
I dont know how to do that.....
help me....