如何在存储过程之间传递临时表 [英] How to pass temp table between store procedure

查看:202
本文介绍了如何在存储过程之间传递临时表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在sql中将临时表从一个存储过程传递到另一存储过程.

How to pass temp table from one store procedure to another in sql .

推荐答案

您不要在存储过程之间传递临时表.临时表存在于数据库中,您可以从任何存储过程中随时访问它,只要它存在即可. *通常*,临时表仅在创建它的存储过程中使用,因为就其本质而言,该表是临时表.提醒您一句-使用完表格后,请确保将其放下.
You don''t pass temp tables between stored procedures. A temporary table exists in the database, and you can access it anytime you want from any stored procedure as long as it exists. *Typically*, a temporary table is only used within the stored procedure that creates it because by their very nature, the table is temporary. One word of caution - when you''re done with the table, make sure you drop it.


这篇关于如何在存储过程之间传递临时表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆