怎么将这段插入数据的代码改成修改数据的代码?

cougar 2001-07-31 12:51:07
sinto="insert into userinfo (username,password,question,ask,name,email,phone,fax,address,sex,age,education,employment,occupation,income,companyname,homepage,province,companysize)"
sinto=sinto&"values ('"
sinto=sinto&username&"','"
sinto=sinto&password&"','"
sinto=sinto&question&"','"
sinto=sinto&ask&"','"
sinto=sinto&name&"','"
sinto=sinto&email&"','"
sinto=sinto&phone&"','"
sinto=sinto&fax&"','"
sinto=sinto&address&"','"
sinto=sinto&sex&"','"
sinto=sinto&age&"','"
sinto=sinto&education&"','"
sinto=sinto&employment&"','"
sinto=sinto&occupation&"','"
sinto=sinto&income&"','"
sinto=sinto&companyname&"','"
sinto=sinto&homepage&"','"
sinto=sinto&province&"','"
sinto=sinto&companysize&"')"
my.execute(sinto) %>
...全文
80 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
rickyfeng 2001-07-31
  • 打赏
  • 举报
回复
可能? ^_^
cougar 2001-07-31
  • 打赏
  • 举报
回复
就是修改后出面一个修改成功的页面,在页面中显示修改后的数据。
tripofdream 2001-07-31
  • 打赏
  • 举报
回复
>>将值传递到下一页面中?么意思?说清楚点
cougar 2001-07-31
  • 打赏
  • 举报
回复
用这种方法改了后可以将值传递到下一页面中。但不能存到数据库中。
后面要加my.execute(Sqlupdate),但出错.
tripofdream 2001-07-31
  • 打赏
  • 举报
回复
Sqlupdate="update userinfo set username='" &username & "'," _
& "password='" & password & "'," _
........
& " where ......"

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧