my code is this
Expand|Select|Wrap|Line Numbers
- import java.sql.*;
- public class Stmt
- {
- public static void main(String args[])throws Exception
- {
- try{
- Class.forName("oracle.jdbc.driver.OracleDriver");
- Connection con=DriverManager.getConnection("jdbc:oracle:thin@localhost:1521:xe","scott","tiger");
- Statement stmt=con.createStatement();
- String vsql="create table testtable(cone number,ctwo number)";
- stmt.executeUpdate(vsql);
- System.out.println("...Success....");
- con.close();
- }
- catch(ClassNotFoundException e)
- {
- System.out.println(e);
- System.out.println("hello");
- }
- }
- }
Please give answer to my question ,i am struck here and unable to go further