Only pull numbers our of field

  • I have a phone number field. The data in it is formatted as xxx-xxx-xxxx; however, I have a need to query that without the dashes, so I only want to pull xxxxxxxxxx. Is this possible?

    Thanks,

    Jordon

  • Take a look at REPLACE.

    REPLACE (string_expression,string_pattern,string_replacement)

    select replace(phone_num, '-','')


    And then again, I might be wrong ...
    David Webb

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

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