can i use empty resultset object for checking condition

Reply

Join Date: Jun 2008
Posts: 38
Reputation: guravharsha is an unknown quantity at this point 
Solved Threads: 0
guravharsha guravharsha is offline Offline
Light Poster

can i use empty resultset object for checking condition

 
0
  #1
Jul 31st, 2008
Hi,
I have one query.
Can we use empty resultset objetct for checking any condition.
supose in my query:
rs= st.ExecuteQuery("select * from user where userid=1 and eventid =4");
which result in empty resultset . so can i use rs for following use as:
if(rs==null){
do some operation
}else{
do another operation
}
Any suggestion is highly appreciated.
Thanks and Regards
Haresh
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the MySQL Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC