Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to search values in database
Joined: Aug 01, 2006
Jan 29, 2009 17:44:04
I want to search values saved in database, I do not think it is good to retrieve all values from the database then search it.
May I know what is the best way to solve this problem.
Joined: Oct 04, 2003
Jan 29, 2009 18:25:29
What do you mean by search in database?
You can use WHERE Clause in SQL to search.
Joined: Feb 04, 2009
Feb 06, 2009 04:28:51
Get the values in a particular row using the SELECT query.
Check for the value in your code with the values retrieved from DB using the while loop.Simple.
If you are aware of the column name which hosts the value of yours, then retrieve only the values stored in that column rather than entire data in the table to reduce the overhead.
It is sorta covered in the
JavaRanch Style Guide
subject: how to search values in database
frequently changing init parameters
Search from a JSP page
How to give search query if we select one than one value from combo box
jsf page refresh
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013