如何将一行数据读入变量
我用语句
DECLARE authors_cursor CURSOR FOR
select
realname ,ismale ,birthday ,idtype ,idno
from dbo.userbase
where username=@username
OPEN authors_cursor
FETCH NEXT FROM authors_cursor
INTO @realname,@ismale,@birthday ,@idtype ,@idno
但我认为这样是不是效率上有问题。有没有更好的办法?