• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation/DB query question

 
Ricky Jay
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to validate for duplicate entries. I'm wanting to make sure that the value is not already in the table.

Is there a way to just return a value from a table without putting it in a bean? Should I just do a count and then return the count value?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the JDBC forum.
 
Ricky Jay
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am I going the right direction with this??

 
Ricky Jay
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Replaced with these two lines of code.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic