Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个存储过程,它采用数据类型 XML 的单个参数。
我还有一个包含 XML 示例的表,我想将其作为此过程的参数进行测试。
是否可以执行 SP 并将测试表上的查询结果作为 XML 输入参数传递?语法是什么?
像这样的东西:
declare @myvar xml select top 1 @myvar=your_xml_column from your_table where your_condition exec spYourProc @xmlparam=@myvar