发布网友 发布时间:2022-04-23 06:07
共1个回答
热心网友 时间:2023-07-03 22:51
这个错误是引号不配对,下面的三行应该写在一行上:
sql = " select name, password
from 用户
where name = '% name %' and password = '% password %'"
修改为:
sql = " select name, password from 用户 where name = '" & name & "' and password = '" & password & "''"