Click here to Skip to main content
16,013,207 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello coders,

I have got an problem that in my database table i have one column "Content" in which i have inserted some data as theory ,now problem is that i had done some common spelling mistake in that theory column,now i want to update that column,i dont want to reinsert !
Example:-
table 1:-
Column1 Column2
1 i luv coding
2 i luv dance
...................
like this i have data,now i want to change the spelling of "luv" to "Love" in all columns ! :(

Thanks in advance !
Jayanti :)
Posted

1 solution

Try:
SQL
UPDATE myTable SET Column2 = REPLACE(Column2, ' luv ', ' love ')
 
Share this answer
 
Comments
JayantiChauhan 2-Mar-12 3:51am    
Thanks OriginalGriff !
OriginalGriff 2-Mar-12 4:00am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900