I want some Search algorithm for searchin the records in a database using Java. Can u pls help me out. The requirement is that I have to display certain records based on the selected criteria. For example depending upon the city I have to find the Location in that city.(This is the simple case.) But depending on such searches I have to write a generic componenent for it. so can anyone help me out.
The SQL handles the search of the database. Just dynamically build your query based on the data entered. If it is entered, add it to your where clause.