摘要:
1)返回结果为参数 存储过程代码:set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgoCREATE PROCEDURE getStudentAmount@recordCount int outputASbegin select @recordCount=count(*) from studentInfo;end 测试代码: XXXXXX2)返回结果为数据集 存储过程代码:set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgoCREATE PROCEDURE queryAllStudentInfoASbegin select * 阅读全文
摘要:
A)返回结果为参数 var Cn:TAdoConnection; Sp:TAdoStoredProc; recordCount:string; begin Cn := TAdoConnection.Create(nil); try Cn.ConnectionString := [数据库连接字符串]; Cn.LoginPrompt := False; Cn.KeepConnection := True; Cn.ConnectionTimeout:=2; try... 阅读全文