存储过程问题 [英] stored procedure issue
本文介绍了存储过程问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下不起作用,它似乎不喜欢存储过程
与sql请求相结合。为什么以及如何克服这个问题?
来自INFORMATION_SCHEMA.tables的SELECT table_name其中table_name IN
(
exec pr_Admin_TablesFromRelations 1 < br $> b $ b)
Thx
Hi,
The following does not work, it doesn''t seem to like a stored procedure
combined with a sql request. Why and how can I overcome this ?
SELECT table_name from INFORMATION_SCHEMA.tables where table_name IN
(
exec pr_Admin_TablesFromRelations 1
)
Thx
推荐答案
http://www.sommarskog.se/share_data.html
>
Simon
http://www.sommarskog.se/share_data.html
Simon
放入pr_Admin_TablesFromRelations的内容进入子查询可能是最简单,最有效的解决方案。
-
David Portas
SQL Server MVP
-
Put the contents of "pr_Admin_TablesFromRelations" into the subquery is
probably the simplest and most efficient solution.
--
David Portas
SQL Server MVP
--
好的,我正准备把它的内容移到一个函数中,是那好吗?
ok, i was about to move the content of it into a function, is that ok ?
这篇关于存储过程问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文