Reputation: 11028
Can anyone suggest me that how can I check if value entered by user is exist in some specific table or not through javaCode?
Upvotes: 0
Views: 1804
Reputation: 272397
I'm guessing you need the JDBC tutorial first of all. That will enable you to run SQL against your DB from Java such as:
if EXISTS (select *
from authors
where name = 'Dan Brown')
Upvotes: 5