Merhaba,
UPDATE wp_posts SET post_content = REPLACE ( post_content, '<a name=\'more\'></a>', '<!--more-->' );

Kolaylıklar.

MaximTsigalko adlı üyeden alıntı: mesajı görüntüle
Merhaba,

Wordpress üzerinden toplu metin değiştirmeye çalışıyorum ama değiştirmek istediğim metinde ' olduğu için hata alıyorum sanırım


Kullanmak istediğim kod:
UPDATE wp_posts SET post_content = REPLACE ( post_content, '<a name='more'></a>', '<!--more-->' );


Aldığım hata:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'more'></a>', '<!--more-->' )' at line 1