Unix Technical Forum

Searching in textfileds for patterns

This is a discussion on Searching in textfileds for patterns within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hello, I was asked to create a small PHP-interface to search in an Oracle 10.1 database. A field will ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 11:57 AM
Uwe Ziegenhagen
 
Posts: n/a
Default Searching in textfileds for patterns

Hello,

I was asked to create a small PHP-interface to search in an Oracle 10.1
database.

A field will contain a small text, I need to search inside this text for
a given keyword. I know the LIKE operator, but is it the best tool for
this job or is there anything more sophisticated to search in fields?

Thanks,

Uwe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 11:57 AM
sybrandb
 
Posts: n/a
Default Re: Searching in textfileds for patterns


Uwe Ziegenhagen wrote:
> Hello,
>
> I was asked to create a small PHP-interface to search in an Oracle 10.1
> database.
>
> A field will contain a small text, I need to search inside this text for
> a given keyword. I know the LIKE operator, but is it the best tool for
> this job or is there anything more sophisticated to search in fields?
>
> Thanks,
>
> Uwe


The CONTAINS operator available in Oracle Intermedia.
This might be an Enterprise Edition option however.
But as an Oracle instructor once said 'Who runs Standard?'
--
Sybrand Bakker
Senior Oracle DBA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 11:57 AM
Martin T.
 
Posts: n/a
Default Re: Searching in textfileds for patterns

Uwe Ziegenhagen wrote:
> Hello,
>
> I was asked to create a small PHP-interface to search in an Oracle 10.1
> database.
>
> A field will contain a small text, I need to search inside this text for
> a given keyword. I know the LIKE operator, but is it the best tool for
> this job or is there anything more sophisticated to search in fields?
>
> Thanks,
>
> Uwe


IIRC Oracle 10 can do regexp ... so you might make your php code a
little bit more cryptic by adding fancy patterns

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com