What does `REPLACE(str, ‘old’, ‘new’)` do in SQL?

Advanced SQL Developer Easy

Advanced SQL Developer — Easy

What does `REPLACE(str, ‘old’, ‘new’)` do in SQL?

Key points

  • The function replaces all instances, not just the first one
  • It does not rename columns or swap rows
  • The replacement is done globally in the string

Ready to go further?

Related questions