so i´ve change my mind….
i´ve enter around 1200 records into a text type field… like so:
this is <span class="italic">the</span> flower<br />
that speaks the mind<br />
bla bla bla<br />
If you notice, i’ve inserted a class named italic… well that is my mistake…
I need to loop all of the 1200 records and replace the class italic with espWord
How do i achieve that ?
SELECT lyrics.lyrics_id, lyrics.lyrics
FROM lyrics
WHERE ?????
replace italic with espWord
UPDATE lyrics set lyrics.lyrics = replace(lyrics.lyrics, ‘italic’, ‘espWord’);
I would never personally have a table name with a field of the same name; to great a potential for confusion.