DECLARE @password2 VARCHAR(30)
select top 1 @password2= password from teacher
不要写成
DECLARE @password2 VARCHAR(30)
select @password2= top 1 password from teacher
也不要写成
DECLARE @password2 VARCHAR(30)
select top 1 password into @password2 from teacher