怎么回事???asp语法错误 (操作符丢失)在查询表达式中

来源:百度知道 编辑:UC知道 时间:2024/05/24 11:36:31
语法错误 (操作符丢失) 在查询表达式 '* form users where username= 'xyz' and password =' 中。

为什么username能获得值,而password值没有呢?

'* form users where username= 'xyz' and password ='
这句不完整,没有定义操作符.
"username= 'xyz' and password ="这是条件,不是获得的东西.
比如你如果从users表里选择username= 'xyz' 和 password ='zyx'的数据行,则应该是:
select * form users where username= 'xyz' and password ='zyx'
其中的select 就是操作符

语法错误 (操作符丢失) 在查询表达式 '* form users where username= 'xyz' and password ='' '中

还加2个 ' 在中前面.