1

I do not understand why there is replace method in the Medoo class.

What is difference between this and a update call?

Tobia
  • 9,165
  • 28
  • 114
  • 219

1 Answers1

0

The UPDATE statement is used to update existing records in a table. And REPLACE method in the Medoo : The replacement value that replaces found search values in a record.

Deror
  • 51
  • 3
  • I still don't understand the difference. Maybe this is a value replace after a select? – Tobia Dec 12 '14 at 19:41
  • The medoo replace in method is to provide for replace record just like UPDATE "table" SET your_column = REPLACE("your_column", 'for_replace_val', 'after_replace_val') – Deror Dec 12 '14 at 19:53