Another solution would be to use any (unknown) scripting language that you use to separate. Otherwise, if it works, do not correct it.
To add some actual value to this answer, I add that it would be good practice for a meaningful column name:
col = '123456'; { select SUBSTRING(col,1, 1) AS value1, SUBSTRING(col, 2,1) AS value2, SUBSTRING(col, 3,1) AS value3, SUBSTRING(col, 4,1) AS value4, SUBSTRING(col, 5,1) AS value5, SUBSTRING(col, 6,1) AS value6 from tbl_table }
In addition, if you do this, it means that you are using the RDBMS incorrectly, and each of them should be in a separate field.
source share