0

I have a Table in Sql

Table 1:

========================================

ID     Text
1      i am a boy
2      boy!what are you doing?
3      that boy is nice
4      He is a Boy and go to school

========================================

i wants to Replace word boy(case insensitively ). like Replace boy to Man then output show be

Table 2:

========================================

ID     Text
1      i am a Man
2      Man!what are you doing?
3      that Man is nice
4      He is a Boy and go to school

========================================

what Query i need to write in Sql to do this

1

2 Answers 2

1
SELECT id, REPLACE( text, 'boy', 'man' )

FROM table1

Sign up to request clarification or add additional context in comments.

Comments

0

You can replace using Replace command something like this:

Update tablename Set Text = replace(Text, 'boy', 'Man');

1 Comment

If this answer helped you to solve your problem you should accept and upvote it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.