string zzj=ZZJ_text.Text;
string zzj1="'" + zzj + "'";
string updateText="总资金="+zzj1;
this.dataSet11.AcceptChanges();
string update="UPDATE zjgl_table SET "+" "+updateText+"WHERE" +" " +"总资金="+zzj1;
this.sqlConnection1.Open();
this.sqlUpdateCommand1=new System.Data.SqlClient.SqlCommand(update,this.sqlConnection1);
this.sqlUpdateCommand1.ExecuteNonQuery();
this.sqlConnection1.Close();因为SQL2000内的数据库字段都是float类型的,但this.sqlUpdateCommand1=new System.Data.SqlClient.SqlCommand(update,this.sqlConnection1);中的Update是string的,无法修改数据库;各位大大有什么好办法吗?
string zzj1="'" + zzj + "'";
string updateText="总资金="+zzj1;
this.dataSet11.AcceptChanges();
string update="UPDATE zjgl_table SET "+" "+updateText+"WHERE" +" " +"总资金="+zzj1;
this.sqlConnection1.Open();
this.sqlUpdateCommand1=new System.Data.SqlClient.SqlCommand(update,this.sqlConnection1);
this.sqlUpdateCommand1.ExecuteNonQuery();
this.sqlConnection1.Close();因为SQL2000内的数据库字段都是float类型的,但this.sqlUpdateCommand1=new System.Data.SqlClient.SqlCommand(update,this.sqlConnection1);中的Update是string的,无法修改数据库;各位大大有什么好办法吗?
解决方案 »
- vs(C#)中如何对错误进行处理,类似VB的ON ERROR RESUME NEXT
- 如何实现像rar的拖放功能,要拖放后解压数据的
- 关于线程的问题
- 用程序后,如何用webbrowser 浏览 带Cookie页面?
- 初学者请求指教:利用textBox中输入的内容去查询数据库得出相关信息。在线等待。。。
- 如何让ASP.NET程序能像JSP一样在服务器的Console上输出信息?
- 关于按位形成字!请教
- 怎么样在人家的应用程序中模拟输入呀??
- 能不能提供一俩个专门面向C#的控件的网站啊?
- c# 修改 windows 用户名和密码 方法
- 哪位兄台给新手讲讲invoke?
- 请问如何从string转成varbinary
查询分析器