How can i implement search functionality otherthan sqlquery,joins and conditional querys
+1
A:
The simpliest way is to use like condition:
select * from Table where fieldName like '%searchword%'
But it's very slow, so it's better to use full-text indexing: in mysql, in sql server
x2
2009-11-24 05:36:17
A:
Well, outside of SQL, you're left to the calling application to do searches. Definitely not the recommended choice if you can avoid it as you'll have to read all data first before searching it; indexing is a very powerful feature for databases.
If you want to display all data and then manipulate/sort/filter it, however, this method has its place.
Perhaps you wish to clarify your question as to what you're looking to accomplish?
lc
2009-11-24 05:36:26