oracle update each distinct row with new value -


value    group ----------------- value2a, value2 value2b, value2 value2c, value2 value3a, value3 value3b, value3 value3c, value3 value3d, value3 value4a, value4 value4b, value4 value4c, value4 value4d, value4 value5a, value5 value5b, value5 value5c, value5 

how can update table1 script runs through every line , changes 'group' like

group-1 group-2 group-3 group-4 group=5 

instead of

value1 value2 value3 value4 value5 

if can distinct values simple qquery

select distinct group table1; 

i must able sort of

update table1 set group = concat('group-',rownum) group = .... 

can this:

update table1 set group = replace(t.group, 'value', 'group-') 

reference:

replace


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -