OleDbConnection objConn = new OleDbConnection(strConn);
OleDbCommand cmd = new OleDbCommand();
// cmd.CommandText = "update @messageFileName set [state]=@reportContent where id=@sendID";
cmd.CommandText = "update 发送短信.csv set [state]='发送' where id='13'";
cmd.Connection = objConn; try
{
objConn.Open();
cmd.ExecuteNonQuery();
objConn.Close();
}
catch (OleDbException ex)
{
throw new Exception(ex.ToString());
objConn.Close();
}
当执行到EXECUTENONQUERY()的是是很报错 操作CSV的是很 “标准数据类型不匹配”
帮忙解决下 不知道哪里错误 我试过用参数 也不行
OleDbCommand cmd = new OleDbCommand();
// cmd.CommandText = "update @messageFileName set [state]=@reportContent where id=@sendID";
cmd.CommandText = "update 发送短信.csv set [state]='发送' where id='13'";
cmd.Connection = objConn; try
{
objConn.Open();
cmd.ExecuteNonQuery();
objConn.Close();
}
catch (OleDbException ex)
{
throw new Exception(ex.ToString());
objConn.Close();
}
当执行到EXECUTENONQUERY()的是是很报错 操作CSV的是很 “标准数据类型不匹配”
帮忙解决下 不知道哪里错误 我试过用参数 也不行
解决方案 »
- 数据提取循环替换....
- 怎么获取sharepoint当前角色下面能够看到的SPList集合
- 鼠标右键的问题,小白提问
- 关于用网页播放器制作歌曲连播
- 问2个问题,那个论坛整合网站比较好?(多谢)
- aspxerrorpath=/website/的问题”或者叫如何隐藏aspxerrorpath的问题
- 新手提问,麻烦大家了~~~~
- 这样的数据绑定会不会影响程序的执行效率?高手作答
- 我用window.open "Import.aspx",target="FrImport"语句没有把import.aspx打开到FrImport框架中?
- 运行程序解析setting的字段出现问题,报CS1056 \CS1040\CS0116
- DataBinder.Eval用法
- 总有人提出“控件分页”的问题,分页和控件有问题吗???
System.Data.OleDb.OleDbException: 该 ISAM 不支持在链接表中更新数据。