我在execl中时用以 逗号开头的数字 例如 '414000 要存到数据库中 int类型里
cusromer.ID = (int)row.GetCell(0).StringCellValue;
cusromer.ID = (int)row.GetCell(0).StringCellValue.ToSting();都报错
string 不能抓换为int
不要把execl和ssql server 中类型改变 求解决方法
cusromer.ID = (int)row.GetCell(0).StringCellValue;
cusromer.ID = (int)row.GetCell(0).StringCellValue.ToSting();都报错
string 不能抓换为int
不要把execl和ssql server 中类型改变 求解决方法
那去掉逗号了就可以转成数字吗?