MySQL Forums
Forum List  »  Full-Text Search

Re: empty set in mysql
Posted by: red blue
Date: January 02, 2009 11:23AM

thanks worked a treat for any1 else who is having same problems this is what i did

select count(variable) from tablename where colomname = something;

this then came back as

count(variable)
0

then in java i did a sql search with a resultset
i got the value like this
int num = rs1.getInt("count(variable)){
re-direct code
}
hope that help others

Options: ReplyQuote


Subject
Views
Written By
Posted
16323
January 02, 2009 12:41AM
6135
January 02, 2009 08:05AM
Re: empty set in mysql
5120
January 02, 2009 11:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.