别名不能用在查询条件里吧。
select username+'-'+userpwd as zd from user where username+'-'+userpwd='admin-1111'
zd 不能在where条件中使用
select username+'-'+userpwd as zd
from user
where username='admin'
and userpwd ='1111'
select username+'-'+userpwd as zd from [user] where username+'-'+userpwd='admin-1111'