![]() |
Show 150 posts per page |
.dsy:it. (http://www.dsy.it/forum/)
- Modelli dei dati e DBMS di nuova generazione (http://www.dsy.it/forum/forumdisplay.php?forumid=386)
-- Inserire XML nell'ORACLE XML REPOSITORY (http://www.dsy.it/forum/showthread.php?threadid=44022)
Inserire XML nell'ORACLE XML REPOSITORY
Il Prof Mesiti mi ha inviato il codice necessario per inserire un pdf nell'ORACLE XML REPOSITORY:
DECLARE
res BOOLEAN;
empsxmlstring VARCHAR2(300):=
'<?xml version="1.0"?>
<emps>
<emp empno="1" deptno="10" ename="John" salary="21000"/>
<emp empno="2" deptno="10" ename="Jack" salary="310000"/>
<emp empno="3" deptno="20" ename="Jill" salary="100001"/>
</emps>';
deptsxmlstring VARCHAR2(300):=
'<?xml version="1.0"?>
<depts>
<dept deptno="10" dname="Administration"/>
<dept deptno="20" dname="Marketing"/>
<dept deptno="30" dname="Purchasing"/>
</depts>';
BEGIN
res := DBMS_XDB.createResource('/public/emps.xml', empsxmlstring);
res := DBMS_XDB.createResource('/public/depts.xml', deptsxmlstring);
END;
__________________
Dispense e altro materiale utile: docs.mark116.it/
Pagina Facebook: facebook.com/mark116Docs/
Algoritmi e Strutture Dati - Sistemi Operativi (e JOS) - Crittografia - Analisi Dati (Linguaggio R) - Reti di Calcolatori - E molto altro...
| All times are GMT. The time now is 13:36. | Show all 1 posts from this thread on one page |
Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.