存储过程的调用:在SQL SERVER中可以,为什么PB中不可以???
1、存储过程声明:
CREATE PROCEDURE test
@iBillType Char(1),
@ID varChar(12) Output
AS
SET @ID = '12345'
2|、pb中的调用:
String ac_type, ls_id
ac_type = 'B'
DECLARE sp_duration PROCEDURE FOR test
@iBillType = :ac_type,
@id = :ls_id OUTPUT;
Execute sp_duration;
messagebox(ac_type,ls_id)
3、在sql server 中测试如下:正常
declare @dd varChar(12)
exec TEST 'B', @dd OUTPUT
if @dd is null
print 'IS NULL'
ELSE
print @dd
go