The db2-xdb:defaultSQLSchema annotation specifies the default SQL schema for all table names referenced in the XML schema that are not explicitly qualified using the db2-xdb:table annotation.
<db2-xdb:defaultSQLSchema> belongs to the set of decomposition annotations that can be added to an XML schema document to describe the mappings between elements and attributes of XML documents to DB2® base tables. The decomposition process uses the annotated XML schema to determine how elements and attributes of an XML document should be decomposed into DB2 tables.
Child element of <xs:appinfo> that is a child of a global <xs:annotation> element.
<xs:schema>
<xs:annotation>
<xs:appinfo>
<db2-xdb:defaultSQLSchema>value</db2-xdb:defaultSQLSchema>
</xs:appinfo>
</xs:annotation>
…
</xs:schema>
http://www.ibm.com/xmlns/prod/db2/xdb1
Either an ordinary or delimited SQL schema name. Ordinary, or undelimited, SQL schema names are case-insensitive. To specify a delimited SQL schema, use quotation marks that are normally used to delimit SQL identifiers. SQL schema names that contain the special characters '<' and '&' must be escaped in the XML schema document.
All tables referenced in annotated schemas must be qualified with their SQL schema. Tables can be qualified in two ways, either by explicitly specifying the <db2-xdb:SQLSchema> child element of the <db2-xdb:table> annotation or by using the <db2-xdb:defaultSQLSchema> global annotation. For any unqualified table name, the value specified in <db2-xdb:defaultSQLSchema> is used as its SQL schema name. If multiple schema documents in an annotated schema specify this annotation, all values must be the same.
<xs:schema xmlns:xs="http:⁄⁄www.w3.org⁄2001⁄XMLSchema"
xmlns:db2-xdb="http:⁄⁄www.ibm.com⁄xmlns⁄prod⁄db2⁄xdb1">
<xs:annotation>
<xs:appinfo>
<db2-xdb:defaultSQLSchema>admin<⁄db2-xdb:defaultSQLSchema>
<⁄xs:appinfo>
<⁄xs:annotation>
…
<⁄xs:schema>
<xs:schema xmlns:xs="http:⁄⁄www.w3.org⁄2001⁄XMLSchema"
xmlns:db2-xdb="http:⁄⁄www.ibm.com⁄xmlns⁄prod⁄db2⁄xdb1">
<xs:annotation>
<xs:appinfo>
<db2-xdb:defaultSQLSchema>"admin schema"<⁄db2-xdb:defaultSQLSchema>
<⁄xs:appinfo>
<⁄xs:annotation>
…
<⁄xs:schema>