Results 1 to 8 of 8

Thread: Oracle wildcard

  1. #1

    Thread Starter
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828

    Oracle wildcard

    I have a field in an oracle db of datatype VARCHAR2(24) (alphanumeric)

    I amy trying to extract records where the above field is a 6 digit numeric

    e.g.

    168497 I need this
    568478 I need this
    SWTA-HGT Don't need this
    12476 Don't need this

    In MS Access (gawdblessit), you can use the '#' wildcard to identify numerics. Any such wildcard in Oracle?

    Cheers

  2. #2

    Thread Starter
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    s'OK, got my solution but not ideal . Any ideas on numeric wildcards still appreciated...

  3. #3
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    probably.

    Is it my turn to pay for the Ramen?

    How did the wedding go?

    When do you want to eat?

    Cheers,

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  4. #4

    Thread Starter
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    Probably????? You deserve to buy me Ramen after that Paul!!! I'm ready today if you like...

  5. #5
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Edinburgh, Scotland
    Posts
    272
    Have you tried the underscore character _ ?

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    The wildcard character in Oracle is the % sign.

  7. #7
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Edinburgh, Scotland
    Posts
    272
    The % character is for any number of characters though.

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    You are correct about that.

    You are looking for a way to specifically identify field entries that are 6 numeric characters ONLY? Am I reading your question correctly?

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