ارجو رؤية هذه الاكواد ومعرفة اذا كانت صحيحة او لأ؟
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection driver=DriverManager.getConnection(url,"","");
Statement statement=driver.createStatement();
String Nam="insert into table1 values('hamada','mohamed','ahabdeen')";
ResultSet result=statement.executeQuery(statementString);
//for printing the contents of the table
while(result.next())
{
System.out.println("title is "+result.getString(1)+"\n"+"Name is "+result.getString(2)+"\n"+"Auth is "+result.getString(3)+"\n");
}
//For add new Row in table>>>> //statement.executeUpdate(Nam);
String search="SELECT * FROM table1 where Title like '%h%' ";
//for seraching in the table and print the serching results
ResultSet res=statement.executeQuery(search);
/*System.out.println("Searching.....");
System.out.println("");
System.out.println("");
while(res.next())
{
System.out.println("title is "+res.getString(1)+"\n"+"Name is "+res.getString(2)+"\n"+"Auth is "+res.getString(3)+"\n");
}*/