Created
July 31, 2020 18:58
-
-
Save BrunoCaimar/ca08d5913affe555e4c3f458745e5b5b to your computer and use it in GitHub Desktop.
ArcGIS - Dominios tabelas/features
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
i.name AS item_name, | |
extractvalue(definition_xml.column_value,'GPFieldInfoEx/Name') AS field_name, | |
extractvalue(definition_xml.column_value,'GPFieldInfoEx/DomainName') AS domain_name, | |
it.name AS item_type | |
FROM | |
sde.gdb_items_vw i | |
JOIN | |
sde.gdb_itemtypes it | |
ON | |
i.type = it.uuid | |
CROSS JOIN | |
TABLE ( xmlsequence(xmltype(definition).extract('/DETableInfo/GPFieldInfoExs/GPFieldInfoEx') ) ) definition_xml | |
WHERE | |
i.name IS NOT NULL | |
AND | |
extractvalue(definition_xml.column_value,'GPFieldInfoEx/DomainName') IS NOT NULL | |
ORDER BY i.name; | |
SELECT | |
i.name AS item_name, | |
extractvalue(definition_xml.column_value,'GPFieldInfoEx/Name') AS field_name, | |
extractvalue(definition_xml.column_value,'GPFieldInfoEx/DomainName') AS domain_name, | |
it.name AS item_type | |
FROM | |
sde.gdb_items_vw i | |
JOIN | |
sde.gdb_itemtypes it | |
ON | |
i.type = it.uuid | |
CROSS JOIN | |
TABLE ( xmlsequence(xmltype(definition).extract('/DEFeatureClassInfo/GPFieldInfoExs/GPFieldInfoEx') ) ) definition_xml | |
WHERE | |
i.name IS NOT NULL | |
AND | |
extractvalue(definition_xml.column_value,'GPFieldInfoEx/DomainName') IS NOT NULL | |
ORDER BY i.name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment