Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Update statement

Update statement

Scheduled Pinned Locked Moved Database
tutorialdatabaseannouncement
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    angelagke
    wrote on last edited by
    #1

    how to write update SQL statement in order to remove all underline in my data for each field, example: "HIGH COST___" change to "HIGH COST" which is remove the underline for all data.. Thanks angela

    D 1 Reply Last reply
    0
    • A angelagke

      how to write update SQL statement in order to remove all underline in my data for each field, example: "HIGH COST___" change to "HIGH COST" which is remove the underline for all data.. Thanks angela

      D Offline
      D Offline
      Dinuj Nath
      wrote on last edited by
      #2

      Update table1 set col1 = replace(col1,'_','') -- Don't take life seriously because you can't come out of it alive. -Warren Miller (From Monty2[^] bio)

      A 1 Reply Last reply
      0
      • D Dinuj Nath

        Update table1 set col1 = replace(col1,'_','') -- Don't take life seriously because you can't come out of it alive. -Warren Miller (From Monty2[^] bio)

        A Offline
        A Offline
        angelagke
        wrote on last edited by
        #3

        ok, i get it :) Thanks a lot for help, Dinuj Nath ;) angela

        V 1 Reply Last reply
        0
        • A angelagke

          ok, i get it :) Thanks a lot for help, Dinuj Nath ;) angela

          V Offline
          V Offline
          VK Cadec
          wrote on last edited by
          #4

          How about:: Update table1 set col1 = 'HIGH COST'

          A 1 Reply Last reply
          0
          • V VK Cadec

            How about:: Update table1 set col1 = 'HIGH COST'

            A Offline
            A Offline
            angelagke
            wrote on last edited by
            #5

            I think the previous 'replace' sql statement is more suitable for me because the data that I wanted to remove those underline have different value, not just for 'HIGH COST' only :) Anyway, thanks again for your suggestion.;) angela

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups