请问怎么覆盖数据库中指定字段的某一数据!!谢谢各位!
解决方案 »
- DLL封装ASP代码后再接受外部参数
- 欢迎下载:图形设计与设备资源管理平台VisualNet2006
- VB6中刷新带有工作组的Access数据库的ODBC连接表时,如果去掉Access登陆对话框
- 救火!在线等待 。。。。。。
- 请问各路高手,有谁知道在VB中有哪些API函数可以播放MP3音乐?
- 怎样把inputbox()的提示信息英文的OK,Cancel改为中文的“确定“,“取消”?
- 怎样把"Label1.left" 这个字符串转换为 Label.left
- 补齐字符串长度
- 急!字符串查找的问题!难题!在线等待
- 我怎么不能给分?
- 如何做程序的快捷方式
- 利用列表框和命令按钮编程,要求程序能够实现添加项目、删除项目和删除全部项目的功能
update 表名 set 你要改的字段名='" & 新值 &"' where 选择条件
strSQL ="update 表名 set 要改的字段名=" & "Text5.Text" & " where 条件=" & "Text4.Text" & ""
这样对吗?
strsql=" update 表名 set 字段名="& 数值型变量 &" where 字段名="& 数值型变量 &""
Rs.Open Sql, Conn, 1, 3
If Not (Rs.EOF Or Rs.BOF) Then
Rs("A_Star") = Text1
Rs("A_End") = Text2
Rs.Update
End if
Rs.Close
记得,用完数据就关闭
strSQL ="update 表名 set 要改的字段名='" & Text5.Text & "' where 条件='" & Text4.Text & "' and 条件='"& Text6.Text & "' "
sqlstmt = "update businessman set businessmanid='" + Trim(businessmanid) + "',businessmanname='" + Trim(businessmanname) + "',country='" + Trim(country) + "',province='" + Trim(province) + "',city='" + Trim(city) + "',address='" + Trim(address) _
+ "', linkman='" + Trim(linkman) + "',telephone='" + Trim(telephone) + "',fax='" + Trim(fax) + "' where businessmanid='" + Trim(oribusinessmanid) + "'"