replace a word in a field
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: replace a word in a field

  1. #1
    Join Date
    Jun 2001
    Posts
    45
    i have an addr field with the sample data as follows.

    123 Wall Street
    1234 Main Street #201
    3402 Dowling Street, Ste 200B

    i want to change all the word Street with st.
    How can i do that.
    Thanks in advance

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    UPDATE my_table SET addr = REPLACE (addr, 'Street', 'st.');
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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