0
UPDATE `ps_product_lang` 
SET 
`description` = REPLACE(`description`, '<li><p>', '<li>')

Above code is not processing and says 0 Rows affected, however, the following code is working with some rows affected:

UPDATE `ps_product_lang` 
SET 
`description` = REPLACE(`description`, 'lip', 'li')

How do I process the previous code? I want to replace exactly <li><p>

Arpan Jain
  • 120
  • 1
  • 6
  • 20
  • I've tested your query and it seems to be fine. Could it be that your table doesn't really have that `'
  • '` value?

  • – FanoFN Apr 10 '19 at 01:47
  • I had the same problem in my php app, I just add to remove the strip_tags() function in my model. – Maxime Apr 10 '19 at 01:57
  • @Maxime I need to update these strings. – Arpan Jain Apr 10 '19 at 02:26
  • @tcadidot0 These values are there. – Arpan Jain Apr 10 '19 at 02:26