updating part of the field.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • endedya
    New Member
    • Oct 2007
    • 1

    updating part of the field.

    Hi,
    i am looking for a just simple sql statement to replace for e.g. 255 in 255754000000 by 0 in my table, so i want to do this in all my field,

    i will appreciate if i get the answer in endedya@gmail.c om
  • shaileshb
    New Member
    • Jun 2007
    • 27

    #2
    ex. ur table name is TEMP10 with column "COL1" which contains following records

    Select * From Temp10

    Col1
    -------------
    2551001
    2551002
    2551003

    now if u want to replace 255 just use update statement

    Update TEMP10 Set COL1 = Replace(Col1, '255', '000')

    [where condition]

    Comment

    Working...