asp.net下降文本格式数据导入到数据库中的代码

时间:2021-01-01 19:41:53
【文件属性】:
文件名称:asp.net下降文本格式数据导入到数据库中的代码
文件大小:19KB
文件格式:PDF
更新时间:2021-01-01 19:41:53
AS asp asp.net 代码如下:StreamReader sr = new StreamReader(“E:\\123.txt”);//文件路径 string oneLine; while ((oneLine = sr.ReadLine()) != null) { string[] str = oneLine.Split(‘|’); string sql = “insert into TableDX(number,name,produce,xinghao) values(‘” + str[0].ToString() + “‘,'” + str[1].ToString().Replace(“‘”,”‘”) + “‘,

网友评论