Pattern Matching in Transformation from Oracle

  • I have a transformation bringing stuff from Oracle to my SQL Server.  I need to use pattern matching in my query.

    In T-SQL I can write:

    Select * from MyTable where MyField like '__[rl]%'

    and the [] works fine.  But Oracle doesn't have clue what to do with [] even though it recognizes '_' and '%'.

    Can anyone show me an example of the Oracle 8i version of this query for my transformation?

    [font="Courier New"]ZenDada[/font]

  • I guess in Oracle 10G this feature is available.

    For  8i you have to use something like

     

    Select * from MyTable where MyField like '__r%' or MyField like  '__l%'

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply