aspose file tools*
The moose likes JDBC and the fly likes Validation/DB query question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Validation/DB query question" Watch "Validation/DB query question" New topic
Author

Validation/DB query question

Ricky Jay
Ranch Hand

Joined: Feb 12, 2010
Posts: 62
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

Joined: Jan 10, 2002
Posts: 61221
    
  66

Moved to the JDBC forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ricky Jay
Ranch Hand

Joined: Feb 12, 2010
Posts: 62
Am I going the right direction with this??

Ricky Jay
Ranch Hand

Joined: Feb 12, 2010
Posts: 62
Replaced with these two lines of code.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation/DB query question