Alex: MySQL Substring Update funktioniert nicht

Beitrag lesen

Hallo Vinzenz,
ich habe das Statement mal geändert nach
UPDATE ruecknahmestellen\_pl
 SET plz = CONCAT((SUBSTR(plz,1,2), '-', SUBSTR(plz,3)))
 WHERE 1;
...also CONCAT eingebaut und ab 1 angefangen zu zählen - leider meldet MySQL immer noch:
#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 '(plz,1,2), '-', SUBSTR(plz,3)))
    WHERE 1' at line 2

Ziel: Postleitzahlen wie 00815 sollen nach 00-815 umformatiert werden.

Beste Grüße

Alex