Comma

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • OuTCasT
    Contributor
    • Jan 2008
    • 374

    #1

    Comma

    Hi
    i have 4000 rows in a column that has numeric values such as 12345678 in each of them
    how would i change the values to have a comma in it such as 123,45678 ???

    I need to change all of them.

    Please help
  • Uncle Dickie
    New Member
    • Nov 2008
    • 67

    #2
    If the comma always goes in the same place could you use:

    Code:
    UPDATE	Table
    SET		Column = substring(Column,1,3) + ',' + substring(Column,4,200)

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      if this is for display purposes, you might as well handle that on your front-end, much easier, less stress to the server.

      -- CK

      Comment

      Working...