我在此代码中的and运算符附近收到错误 [英] I am getting a error near the and operator in this code

查看:58
本文介绍了我在此代码中的and运算符附近收到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

if exists((select NAME from USER_LST where NAME=@USER_NAME) and (select PWD from USER_LST where PWD=@PWD ))

推荐答案

不要那样做!

切勿以明文形式存储密码 - 这是一个主要的安全风险。有关如何在此处执行此操作的信息:密码存储:如何做到这一点。 [ ^ ]


这是正确的语法,请确保遵循OriginalGriff提到的密码保护规则。



Here is the right syntax and make sure you follow the password protection rules as mentioned by OriginalGriff.

if exists(select NAME from USER_LST where NAME=@USER_NAME) AND exists(select PWD from USER_LST where PWD=@PWD )


这篇关于我在此代码中的and运算符附近收到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆