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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to search for keywords in the datebase

Status
Not open for further replies.

mokesql

Programmer
Sep 6, 2001
30
0
0
AT
hi!
i want to search for keywords in a db or in tables? how can i do it? are there any things i should know about? thnx

kemo
 
What do you mean by keywords? Searching a string on table data? Searching for, say, column names?? :?
 
The only way I know is by writing an SQL query :
select col1,col2 from table1 where col3 like %keyword%. Too bad I.T. is not cash business

Luc Foata
Unix sysadmin, Oracle DBA
 
if i want to search for a word example, for keyboard in the whole table/db and i dont know in wich columns this word can be, i want to have alle results for a table. so i want to search in all columns without typint all columnnames like %word to search%. is there a possibility? thnx
 
???

SELECT *
FROM MyTable
WHERE UPPER(MyTable.Field1 || MyTable.Fieldn)
LIKE '%KEYBOARD%'; Terry M. Hoey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top