送信ポート SELECT スキーマ
パラメータ化されたSELECT ステートメントの実行
以下のセクションでは、次のパラメータ化されたクエリのスキーマ、インスタンス、および応答について説明します。
SELECT ShipName, ShipCity FROM Orders WHERE ShipCountry = @ShipCountry
SELECT スキーマの要求と応答へのマッピング
送信請求-応答送信ポートのSELECT スキーマには、応答セクションと入力パラメータセクションの両方があります。SELECT スキーマ
以下は、送信請求-応答送信ポートから実行されるパラメータ化クエリのスキーマの例です。
<?xml version="1.0" encoding="utf16" ?>
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" attributeFormDefault="unqualified" elementFormDefault="qualified" targetShipCityspace="http://www.cdata.com/MariaDBProvider/2020J" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="parameters">
<xs:complexType>
<xs:sequence>
<xs:element name="ShipCountry" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="table">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="row">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="ShipName">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="IsNull" type="xs:boolean" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="ShipCity">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="IsNull" type="xs:boolean" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="AffectedRows" type="xs:int" />
</xs:complexType>
</xs:element>
</xs:schema>
SELECT 要求
以下は入力インスタンスです。
<ns0:parameters xmlns:ns0="http://www.cdata.com/MariaDBProvider/2020J">
<ns0:ShipCountry>ShipCountry_0</ns0:ShipCountry>
</ns0:parameters>
SELECT 応答
以下は応答です。
<ns0:table AffectedRows="3" xmlns:ns0="http://www.cdata.com/MariaDBProvider/2020J">
<ns0:row>
<ns0:ShipName IsNull="true">ShipName_0</ns0:ShipName>
<ns0:ShipCity IsNull="true">ShipCity_0</ns0:ShipCity>
</ns0:row>
<ns0:row>
<ns0:ShipName IsNull="true">ShipName_0</ns0:ShipName>
<ns0:ShipCity IsNull="true">ShipCity_0</ns0:ShipCity>
</ns0:row>
<ns0:row>
<ns0:ShipName IsNull="true">ShipName_0</ns0:ShipName>
<ns0:ShipCity IsNull="true">ShipCity_0</ns0:ShipCity>
</ns0:row>
</ns0:table>