日期:2014-05-18  浏览次数:20524 次

conn.execute 关于update的一个问题。
dim str
str=request.form("uname")
conn.execute "update table set user='"&str&"' where id=1"
改变字段user的内容,如果user为空的话,直接赋值,如果user不为空的话,用,隔开后添加新值,譬如:值1,值2

请教带判断的这个sql语句怎么写呢?
请教。

------解决方案--------------------
用 case when