这个sql的语句怎么写? 急

rosky 2004-08-16 01:44:05
sql="update personnel set picture="1" and picture_patch=patch
where name=session("username")"

我想更新表personnel 中字段picture和picture_patch ,
给字段picture_patch的值是字符串patch, patch是由前面的语句赋值的,不是固定的

这个sql 语句怎么写啊?
...全文
86 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
defore 2004-08-16
  • 打赏
  • 举报
回复
4个!
甘泉123 2004-08-16
  • 打赏
  • 举报
回复
如果是字符型的要加 单引号~
defore 2004-08-16
  • 打赏
  • 举报
回复
晕,三个时间都一样?!
甘泉123 2004-08-16
  • 打赏
  • 举报
回复
sql="update personnel set picture=1 and picture_patch="&patch
&" where name=session("username")"
defore 2004-08-16
  • 打赏
  • 举报
回复
sql="update personnel set picture='1' and picture_patch='"&patch&"'
where name='"&session("username")&"'"
life360 2004-08-16
  • 打赏
  • 举报
回复
sql="update personnel set picture='1' and picture_patch='"&patch&"'
where name='"&session("username")&"'"
danis_cn 2004-08-16
  • 打赏
  • 举报
回复
sql="update personnel set picture="1" and picture_patch='"&patch&"'
where name=session("username")"
zorou_fatal 2004-08-16
  • 打赏
  • 举报
回复
picture和picture_patch是什么类型的字段?

28,391

社区成员

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

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