SELECT id FROM people WHERE id REGEXP 'id-(\d)*';
result
id-1
id-2
id-3
This above query works but when i run update query below, it don't affect any rows
UPDATE people SET id = REPLACE(id, 'id-(\d)*', 'id-4');
0 row(s) affected
Somebody can explain for me, what wrong ?