A
ashutosh
i m working in jsp and i m executing a query like :
String var="select * from reservation where starting_time='"+i+"' and
allocation_no='"+j+"'";
ResultSet rs = st1.executeQuery(var);
now i want to check whether rs contains some value in it or not.
so what syntax should i use for this...
i want to use it for if-statement like....
if (rs is null)
execute this
else
execute this
please help....
String var="select * from reservation where starting_time='"+i+"' and
allocation_no='"+j+"'";
ResultSet rs = st1.executeQuery(var);
now i want to check whether rs contains some value in it or not.
so what syntax should i use for this...
i want to use it for if-statement like....
if (rs is null)
execute this
else
execute this
please help....