可以在一个程序中调用两个程序吗? [英] Can two procedures be called in a single procedure ?
本文介绍了可以在一个程序中调用两个程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以在一个程序中调用两个程序吗?
Can two procedures be called in a single procedure ?
推荐答案
是的...程序可以调用一个程序...我已经调用了七个程序a程序......
示例:
Yes... Procedures can be called into a Procedure... I Have called seven Procedures into a Procedure...
Example:
Alter Proc Procedure1 @Param1 Nvarchar(40)
as
Begin
Exec Procedure2 'InputParameter'
Exec Procedure2 @Param1
End
当然可以在执行其他程序时调用程序。
请参阅此链接以了解如何操作这个:
http://stackoverflow.com/questions/170328/executing-a-stored-procedure-within-a-stored-procedure [ ^ ]
< a href =http://www.dbforums.com/db2/1642603-how-call-one-procedure-another-procedure-select-block.html> http://www.dbforums.com/db2/1642603 -how-call-one-procedure-another-procedure-select-block.html [ ^ ]
Yes of course you can call procedure during other procedure execute.
Refer this link to see how to do this:
http://stackoverflow.com/questions/170328/executing-a-stored-procedure-within-a-stored-procedure[^]
http://www.dbforums.com/db2/1642603-how-call-one-procedure-another-procedure-select-block.html[^]
这篇关于可以在一个程序中调用两个程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文