aspose file tools
The moose likes JDBC and the fly likes Validation/DB query question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 56201
    
  13

Moved to the JDBC forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Validation/DB query question
 
Similar Threads
How to count duplicate entries in one column
JavaScript to HTML table assistance
toString
Number of rows in a table?
Parallel Hint! Very cool!