For MSSQL
convert(int,'01235')
DECLARE @Pos int
SET @Pos=1;
DECLARE @inputString varchar(10)
SET @inputString='012345'
DECLARE @intValue int
while(@Pos<=LEN(@inputString))
BEGIN
SET @intValue = CONVERT(int,substring(@inputstring,@Pos,1));
INSERT INTO myTable(myfield) Values(@intValue);
SET @Pos=@Pos+1
END