Monday, January 30, 2017

Inserting XML Data Type

CREATE TABLE warehouses (
warehouse_id NUMBER(3),
warehouse_spec SYS.XMLTYPE,
warehouse_name VARCHAR2 (35),
location_id NUMBER(4));


INSERT into warehouses (warehouse_id, warehouse_spec)
VALUES (100, sys.XMLTYPE.createXML(

Owned
’));



COLUMN Building FORMAT A20
SELECT
w.warehouse_spec.extract(’/Warehouse/Building/text()’).getStringVal()
"Building"
FROM warehouses w


Building
--------------------
Owned

No comments:

Post a Comment

Drilldown from GL to Inventory Transactions, Inv to gl Link Query R12,Inventory to General ledger links, r12 ,Inv to gl drill down

Drilldown from GL to Inventory Transactions, Inv to gl Link Query R12,Inventory to General ledger links, r12 ,Inv to gl drill down Link bet...