声明存储过程
CREATE PROCEDURE sp_results_demo @InParmInt Int,@OutParmInt OUTPUT
AS
BEGIN
SELECT 1,2,3,4
SELECT uid,id
FROM sysobjects
WHERE type='U'采集我?NKC5o
SELECT @OutParmInt=69采集我?NKC5o
Return 16
END
用于返回每个返回值时用PowerScrip如下:
Long lReturn,lPram1,lPram2,lResult1,lResult2,lResult3,lResult4,lResult5,lResult6采集我?NKC5o
DECLARE results_demo PROCEDURE FOR
@returnValue=sp_results_demo
@InParmInt = :lPram1,
@OutParmInt = :lPram2 OUTPUT using sqlca;采集我?NKC5o
execute results_demo;采集我?NKC5o
Do While SQLCA.SQLCode=0
Fetch results_demo INTO :lResult1,:lResult2,:lResult3,:lResult4 ;
Loop采集我?NKC5o
Fetch results_demo INTO :lResult5,:lResult6 ;采集我?NKC5o
Do While sqlca.sqlcode=0
Fetch results_demo Into :lResult5,:lResult6;
Loop采集我?NKC5o
Fetch results_demo Into :lReturn,:lPram2;采集我?NKC5o
Close results_demo ;采集我?NKC5o
爱好者 wdw@gst.com.cn采集我?NKC5o
mail to :imdt@263.net采集我?NKC5o
采集我?NKC5o
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |