다음을 통해 공유


XSD 데이터 형식을 XPath 데이터 형식에 매핑(SQLXML 4.0)

적용 대상: SQL ServerAzure SQL Database

XSD 스키마에 대해 XPath 쿼리가 실행되고 XSD 형식이 xsd:type 특성에 지정된 경우 XPath는 쿼리를 처리할 때 지정된 데이터 형식을 사용합니다.

노드의 XPath 데이터 형식은 다음 표와 같이 스키마의 XSD 데이터 형식에서 파생됩니다. (EmployeeID 노드는 그림의 용도로 사용됩니다.)

XSD 데이터 형식 XDR 데이터 형식 해당

XPath 데이터 형식
SQL Server

사용되는 변환
Base64Binary

HexBinary
없음

bin.base64bin.hex
해당 사항 없음 None

EmployeeID
부울 boolean boolean CONVERT(bit, EmployeeID)
Decimal, integer, float, byte, short, int, long, float, double, unsignedByte, unsignedShort, unsignedInt, unsignedLong number, int, float,i1, i2, i4, i8,r4, r8ui1, ui2, ui4, ui8 number CONVERT(float(53), EmployeeID)
id, idref, idrefsentity, 엔터티, 표기법, nmtoken, nmtokens, DateTime, 문자열, AnyURI id, idref, idrefsentity, entities, 열거형, 표기법, nmtoken, nmtokens, char, dateTime, dateTime.tz, string, uri, uuid string CONVERT(nvarchar(4000), EmployeeID, 126)
decimal fixed14.4 적용할 수 없음(XPath에는 fixed14.4 XDR 데이터 형식과 동일한 데이터 형식이 없습니다.) CONVERT(money, EmployeeID)
date date string LEFT(CONVERT(nvarchar(4000), EmployeeID, 126), 10)
time time

time.tz
string SUBSTRING(CONVERT(nvarchar(4000), EmployeeID, 126), 1 + CHARINDEX(N'T', CONVERT(nvarchar(4000), EmployeeID, 126)), 24)