LIKE operator Alternative
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: LIKE operator Alternative

  1. #1
    Join Date
    Oct 2013
    Posts
    3

    LIKE operator Alternative

    Hi,

    I am trying to use an alternative for LIKE operator.

    can any one help me changing this

    Tmast.Pods_Dataset_Ids Like '%;' || Pd.Pods_Dataset_Id || ';%';

    to

    an REGEXP_LIKE

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    Quote Originally Posted by adityareddy View Post
    I am trying to use an alternative for LIKE operator.
    can any one help me changing this

    Tmast.Pods_Dataset_Ids Like '%;' || Pd.Pods_Dataset_Id || ';%';

    to

    an REGEXP_LIKE
    something like... REGEXP_LIKE( Tmast.Pods_Dataset_Ids , ';Pd.Pods_Dataset_Id;' )
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #3
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    3,968
    You can also use a contextual index, where you can use the contains filter as well.

    http://docs.oracle.com/cd/B19306_01/...b14217/ind.htm
    this space intentionally left blank

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width