求救:下面SQL一段语句中最后一句结尾为什么没有双引号?
dim userid'将单引号改为双引号
function sqlstr(data)
sqlstr="'" & Replace(data,"'","''") & "'"
end function
ssql="update users set name=" & sqlstr(name) & ",address=" & sqlstr(address)
ssql=ssql & ",idnumber=" & sqlstr(idnumber) & ",age=" & sqlstr(age)
ssql=ssql & ",zipcode=" & sqlstr(zipcode) & ",phone=" & sqlstr(phone)
ssql=ssql & ",email=" & sqlstr(email)
ssql=ssql & " where userid=" & sqlstr(userid)这里为什么没有"
一般sql语句ssql="update users set name=' ' where xxxxx "
为什么它没有"