Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do a *all field* search with defining all the fields...possible?

Status
Not open for further replies.

Shrum

Programmer
May 17, 2002
122
US
I have a search engine that I wrote. The problem is that the database that it is working on will evolve from time to time and may add/delete fields as time goes by.

Short of writting a procedure to read the database field names out of the database, thus adding more processing time to a already time-intensive process already, I figured I try the simplest solution first...

Is it possible to define a SELECT statement where the WHERE clause is wildcarded? Sorta like:

SELECT * WHERE * LIKE 'mysearchtext'?

TIA
 
wildly experimental:

SELECT * from Table_name a where a.* LIKE 'mysearchtext'






Known is handfull, Unknown is worldfull
 
Bummer...just tried it and no go : error message.

Keep the ideas coming and I'll throw um at it.

TIA
 
Opps...premature...you still need to specify field names.

HEY!

The MATCH method does search scoring! That's KEWL!
 
oops ran out of ideas... :(

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top