
在delphi下如何调用在ms-sql-server下写的需要传入参数的存储过程
1个回答
展开全部
只要后台的存储过程写的正确,调用应该很简单,如:
传入参数:(storedproc1是存储过程空间名称)
with
storedproc1
do
begin
parambyname('@inputparam').asinteger:=100;
execproc;
end;
传出参数:
with
storedproc1
do
begin
execproc;
edit1.text:=params[0].asstring;
end;
传入参数:(storedproc1是存储过程空间名称)
with
storedproc1
do
begin
parambyname('@inputparam').asinteger:=100;
execproc;
end;
传出参数:
with
storedproc1
do
begin
execproc;
edit1.text:=params[0].asstring;
end;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询