select * from UserInfo where UserName = @UserName and Password = @Password
以上代码为什么只能满足一个查询条件..哪个放在前面就是判断哪个..