现在有people表 数据有3000万左右
字段为 id   name   sex    iscar    isshuma    age     object.........
       1      张     1       1          1      22      1,2,3
       2      王     0       0          0      22      1,3 
       3      李     1       1          1      22      3
       4      刘     0       0          1      22      1,2
       5      马     1       1          0      22      2,3现在需要把people表拆分为三张表test1,test2,test3  数据分开放入其中
test1表放入  (id,name,hcobject,txinfo)字段   
其中hcobject为iscar,isshuma字段处理后的结果  
iscar如果值为1,则取1,为0则为空
isshuma如果值为1,则取2,为0则为取3
也就是说hcobject值应该为
1,2
3
1,2
2
1,3
txinfo为object字段处理后的结果
如果object字段含有3,则截掉3
也就是说txinfo值应该为
1,2
11,2
2
test2表放入(....)
test3表放入(....)
数据量很大,我想知道怎么做才能提高效率,
如果数据中途出错,怎么样找到出错的地方,
以便出错后再导数据时可以接着上一次出错的地方导入
这一块的存储过程该怎么写,本人对存储过程不太熟,
忘各位帮忙详解,小弟万分感激
急!!!