I have the following MySQL code, which should (for each row) take the value of the column Cislo and then update the current row, setting the column Cislo and Nazov to SUBSTRINGs of the current value.
So let's say currently
Cislo = 12345LoremIpsum and Nazov='', after the update it should be Cislo=12345 and Nazov=LoremIpsum.
I have tried many different approaches, however the results are always empty cells.
UPDATE `skladovekartyvyrobok00001` SET
`Cislo`= SUBSTRING(`Cislo`,0,5),
`Nazov`= SUBSTRING(`Cislo`,5)
WHERE `ID`=31;