dbms:ms sql server 2000 存储过程如下: CREATE proc tstPro @age int, @theNum int output as select @theNum=count(sn) from s where sa=@age GO delphi中调用: var str:string;
[sql] — ===================【创建存储过程】===================== USE [Message] GO /****** Object: StoredProcedure [dbo].[读取外部数据库查询] scr ipt Date: 10/24/2012 05:39:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO — =================================