Grazie innanzitutto per l'interessamento, non me l'aspettavo

Purtroppo però mi esce fuori un errore praticamente da subito:

UPDATE tb_test data_date = concat_ws( '-', substring_index( data_varchar, '-' , -1 ) , lpad( SUBSTRING_INDEX( substring_index( data_varchar, '-', 2 ) , '-' , -1 ) , 2, '0' ) , lpad( substring_index( data_varchar, '-', 1 ) , 2, '0' ) )
Messaggio di MySQL:

#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 '=
concat_ws('-',substring_index(data_varchar,'-',-1),lpad


grazie mille