Basics of jdbc programming Tutorial-6(ResultSet interface part-2)

preview_player
Показать описание
this video deals with the ResultSet interface and different methods inside in .we came to know about the use of concurrency and updatation in ResultSet object with java codes.
class Jdbc
{
public static void main(String args[])throws Exception
{
Connection con=null;
Statement st=null;
ResultSet rs=null;
String query=null;
try
{
if(con!=null)
{
}
if(st!=null)
{
query="select * from emp026";
{
//getting the record of 3rd row
//getting the record of 1st row
//getting the record of last row
}
}
}
catch(SQLException e)
{
}
catch(ClassNotFoundException e)
{
}
catch(Exception e)
{
}
finally
{
}
}
}
//updation in ResulSet
class Jdbc
{
public static void main(String args[])throws Exception
{
Connection con=null;
Statement st=null;
ResultSet rs=null;
String query=null;
try
{
if(con!=null)
{
}
if(st!=null)
{

query="select salary from emp026 where ename='AMAR'";

{
}
{
}


}
}
catch(SQLException e)
{
}
catch(ClassNotFoundException e)
{
}
catch(Exception e)
{
}
finally
{
}
}
}
Рекомендации по теме
visit shbcf.ru