当前位置:网站首页>c#数据库报错问题大家帮我看看吧
c#数据库报错问题大家帮我看看吧
2022-06-23 04:58:00 【CSDN问答】
c#数据库报错
{
string strid2 = Convert.ToString(dataGridView1.CurrentCell.RowIndex); string sql = string.Format(@"update Customer set CustomerCompanyName='{0}',CustomerName='{1}',CustomerTitle='{2}',CustomerAddress='{3}',CustomerPostalcode='{4}',CustomerIphone='{5}',telephone={
6},where CustomerID ='{7}'" , value[1], value[2], value[3], value[4], value[5], value[6], Convert.ToInt32(value[7]), strid2); int n = DBHelper.ExecuteNonQuery(sql); if (n > 0) { MessageBox.Show("修改成功"); } else { MessageBox.Show("修改失败"); }

实在看不出来 大家可以帮我看看吗
边栏推荐
- Vant web app calendar component performance optimization calendar add min date the minimum date page loads slowly
- [cocos2d-x] erasable layer:erasablelayer
- pyinstaller 打包exe设置图标不显示
- Day_ 12 smart health project jasperreports
- Pyinstaller package exe setting icon is not displayed
- 给定二叉树的某个节点,返回该节点的后继节点
- Runc symbolic link mount and container escape vulnerability alert (cve-2021-30465)
- Pat class B 1025 reverse linked list
- (1)基础学习——vim编辑器常用快捷操作命令
- Day_13 传智健康项目-第13章
猜你喜欢

Introduction to JVM principle
![[vivado] xilinxcedstore introduction](/img/c7/4f203d125ddb18378398a7eaeffaf5.png)
[vivado] xilinxcedstore introduction

100-300 cases of single chip microcomputer program (detailed explanation of notes)

Day_ 13 smart health project - Chapter 13

图解 Google V8 # 17:消息队列:V8是怎么实现回调函数的?

Day_04 传智健康项目-预约管理-套餐管理

Day_03 传智健康项目-预约管理-检查组管理

Day_05 传智健康项目-预约管理-预约设置

Day_09 传智健康项目-移动端开发-手机快速登录、权限控制

Softing dataFEED OPC Suite将西门子PLC数据存储到Oracle数据库中
随机推荐
Pyinstaller sklearn reports errors
C语言 踩坑:文档编码错误,导致base64中文编码错误
100-300 cases of single chip microcomputer program (detailed explanation of notes)
密码学系列之:PKI的证书格式表示X.509
mongodb 4. X binding multiple IP startup errors
Softing dataFEED OPC Suite将西门子PLC数据存储到Oracle数据库中
Day_08 传智健康项目-移动端开发-体检预约
CVE-2021-20038
Day_13 傳智健康項目-第13章
Newbeecoder. Page animation switching of UI control library
Pyqt5 设置窗口左上角图标
golang正则regexp包使用-04-使用正则替换(ReplaceAll(),ReplaceAllLiteral(),ReplaceAllFunc())
Smart port: how to realize intelligent port supervision based on the national standard gb28181 protocol easygbs?
Day_04 传智健康项目-预约管理-套餐管理
【Leetcode】431. Encode N-ary Tree to Binary Tree(困难)
mongodb 4.x绑定多个ip启动报错
微软面试题:打印折纸的折痕
求二叉树最宽的层有多少个节点
exe闪退的原因查找方法
Redis 哨兵