1
는 사실은 다음과 같은 설명을tabled-value를 전달하여 다중 검색 SPROC/UDF를 만들려면 어떻게해야합니까?
이
<items>
<item category="cats">1</item>
<item category="dogs">2</item>
</items>
SELECT * FROM Item
WHERE Item.Category = <one of the items in the XML list>
AND Item.ReferenceId = <the corresponding value of that item xml element>
--Or in other words:
SELECT FROM Items
WHERE Item IN XML according to the splecified columns.
내가 분명히 한 정도로 내가 서버에 전달하려는 테이블 인수 오전를 달성하려면?
xml과 다른 방식으로 사용해도 상관 없습니다. 필요한 것은 두 개의 열 값 중 하나의 값을 선택하는 것입니다.
XML 또는 텍스트 인 Items.Item의 데이터 유형은 무엇입니까? –
col1 varchar (32), col2 int. – Shimmy
귀하의 시도를 보여주십시오 .... –