Giusto per sfizio ho provato a recuperare le date a partire dalla tua stringa.
Aggiungi un campo di tipo date alla tua tabella ed esegui questa query.
Al posto di stringa metti il nome del tuo campo che contiene quelle date folli.
codice:update tabella set `data` = concat_ws('-', substring_index( trim(substring_index(stringa,',',-1)),' ',-1), case when locate('Gennaio',stringa) then '01' when locate('Febbraio',stringa) then '02' when locate('Marzo',stringa) then '03' when locate('Aprile',stringa) then '04' when locate('Maggio',stringa) then '05' when locate('Giugno',stringa) then '06' when locate('Luglio',stringa) then '07' when locate('Agosto',stringa) then '08' when locate('Settembre',stringa) then '09' when locate('Ottobre',stringa) then 10 when locate('Novembre',stringa) then 11 when locate('Dicembre',stringa) then 12 end, lpad(substring_index( trim(substring_index(stringa,',',-1)),' ',1),2,'0'))


Rispondi quotando