请一存储过程语句,关于循环插入类别ID
字符串   s   =    "36,33|36,34,|35,-1| "; 
 怎样在表kind中形成: 
 id            bid            sid 
 1               36               33 
 2               36               34 
 3               35               -1   
 请问用存储过程该怎样写.多谢了.   
 我的方法: 
 string[]   a   =   s.Split( '| '); 
 for(int   i   =0;i <a.Length-1;i++) 
 { 
             k   =   bll_cpy.InsertKind(a[i]);	 
 } 
 bll_cpy中: 
 InsertKind(string   str) 
 { 
          string[]   s   =str.Split( ', '); 
          int   a   =   Convert.ToInt32(s[0]); 
          int   b   =   Convert.ToInt32(s[1]); 
          DB   db   =   new   DB(); 
          SqlParameter[]   prams   =   {db.MakeInPara( "@bID ",SqlDbType.Int,   4,   a), 
          SqlParameter[]   prams   =   {db.MakeInPara( "@sID ",SqlDbType.Int,   4,   b), 
          db.RunProc( "sp_Insert_kind ",prams); 
 }    
------解决方案--------------------i <a.Length才是吧
------解决方案--------------------应该是i <a.Length 
 存储过程难写了,想学习下. 
 ps,楼上的称号也太.......寒一个