943,574 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Unsolved
  • Views: 959
  • MySQL RSS
Jul 31st, 2008
0

can i use empty resultset object for checking condition

Expand Post »
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
Similar Threads
Reputation Points: 8
Solved Threads: 0
Light Poster
guravharsha is offline Offline
42 posts
since Jun 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: MySQL Incorrect information in file
Next Thread in MySQL Forum Timeline: Auto Increment Date





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC