注册 登录
编程论坛 ASP技术论坛

sql有问题

zdloveday 发布于 2010-01-11 10:19, 456 次点击
dim id
id=request("id")

sqlcmd="update wygkway set is_img=not is_img where id="&id
conn.execute sqlcmd

conn.close
set conn=nothing

请帮我  看一下
这个 sql 语句  not  应该 怎么写 了?
sqlcmd="update wygkway set is_img=not is_img where id="&id
3 回复
#2
ysf01812010-01-11 11:26
sqlcmd="update wygkway set is_img=not is_img where id="&id

红色应该是变量或者你指定的量,不能有空格。
#3
chenguoxing5172010-01-11 12:51
sqlcmd="update wygkway set is_img is not is_img where id="&id
#4
zdloveday2010-01-11 14:13
我是想 通过  这个 sql(sqlcmd="update wygkway set is_img=not is_img where id="&id
) 语句得到  
一个 视图  因为 is_img 是bit 类型   
点修改 的时候 is_img 会呈现 反面转化的样子  
大家想想  办法   帮帮忙   
1