Level 13
Hi using replace in a select query is something like:
SELECT REPLACE("SQL Tutorial", "SQL", "HTML");
A update query might look something like:
update postcodes set latitude = replace(latitude, ',', '.' )
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
good day,
I'm trying to replace something directly in my mysql database (5.7.28)
Using the following code:
SELECT latitude
FROM postcodes
REPLACE (latitude,',','.')
it gives a error. But i don't understand.
ou have an error in your SQL syntax;
Thanks for the help1
Please or to participate in this conversation.