标签:split height img ima 人工 info stringbu model col
做数据迁移时,最稳妥的还是SQL语句
为了拼SQL写了个小工具
嗯,我懒我承认,哈哈,我就不在SQL里拼字符串,哈哈
string temp=this.richTextBox1.Text; string strlist=this.richTextBox2.Text; string strmodel = this.richTextBox3.Text; string[] list = strlist.Split(‘|‘); string[] model_list = strmodel.Split(‘,‘); System.Text.StringBuilder sb =new System.Text.StringBuilder(); for(int i=0;i<list.Length;i++) { string s =temp; string[] t_list =list[i].Split(‘,‘); for(int j=0;j<model_list.Length;j++) { if(model_list[j].Trim()=="") continue; s = s.Replace(model_list[j],t_list[j]); } sb.Append(s); sb.Append(@" "); } this.richTextBox1.Text =""; this.richTextBox1.Text = sb.ToString();
链接: https://pan.baidu.com/s/1MiMpW1a9rzgK9cGLPMIogA 提取码: yxtc
enjoy :P
标签:split height img ima 人工 info stringbu model col
原文地址:https://www.cnblogs.com/want990/p/10855214.html