delphi疯了,还是偶疯了,这问题没有再简单的了,可为什么就通不过,1+1为什么就不等于2,起了怪了,有没有天理了?//牛虻
一个绝简单的存储过程:
CREATE PROCEDURE login
@username char,
@passwd char
as
select *
from pass
where username = @username and passwd = @passwd
GO
再用这个执行:
parambyname('@username').value:=edit1.text;
parambyname('@passwd').value:=edit2.text;
execproc;
if recordcount=1 then
showmessage('ok');
delphi非报错:cannot perform this operation on a close dataset
偶吧存储过程组件的active设置为true,
嘿,偶差点要骂:
delphi又报错:cannot perform this operation on an open dataset
你说还有这么可气的吗???