Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updation issue 1

Status
Not open for further replies.

SqlHunter

Programmer
Jun 3, 2004
166
US
Here I have a column called on_description and I want to update this column to like where there is OMP_ to KLM_
and even if there is multiple instances the result should be KLM_

on_description
---------------
OMP_Seras
OMP_OMP_OMP_OMP_uong
OMP_OMP_Mike
OMP_OMP_OMP_OMP_Angel

result should be
------------------


KLM_Seras
KLM_uong
KLM_Mike
KLM_Angel
 
If you've already done the update, it wouldn't hurt to double check if there is an instance of 'KLM_KLM_' because of the original instance of 5 OMP_s.
-Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Good point! But since there is a limit (8 I think), it still wouldn't hurt to check. I reasoned that the OMP_s got there through a systematic process, so the number of them is probably unknown unless SqlHunter actually checked.
-Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top