Method and apparatus for flexible storage and uniform manipulation of XML data in a relational database system
First Claim
1. A method for managing data in a relational database, the method comprising the steps of:
- receiving at a database server an XML document for storage in the relational database;
storing in the relational database mapping information that indicates a mapping of one or more fields in the XML document to corresponding columns in the relational database;
storing data from the XML document in the relational database in locations that are determined based on the mapping information; and
in response to the database server receiving a request for data from the XML document, inspecting the mapping information to determine how to access the data from the XML document.
3 Assignments
0 Petitions
Accused Products
Abstract
Techniques are provided for XML data storage and query rewrites in relational databases. According to certain embodiments of the invention, a mechanism is provided to allow the user to store an XML document in a relational database and to submit mapping information that indicates a mapping of each field of the XML document to the column in the relational database in which the data from each field is stored. If the user submits an XML query to access the data in the XML document that is stored in the relational database, then a mechanism is provided to generate a database query based on the XML query and the mapping information.
290 Citations
34 Claims
-
1. A method for managing data in a relational database, the method comprising the steps of:
-
receiving at a database server an XML document for storage in the relational database;
storing in the relational database mapping information that indicates a mapping of one or more fields in the XML document to corresponding columns in the relational database;
storing data from the XML document in the relational database in locations that are determined based on the mapping information; and
in response to the database server receiving a request for data from the XML document, inspecting the mapping information to determine how to access the data from the XML document. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34)
-
-
18. A computer-readable medium carrying one or more sequences of instructions for managing data within a relational database, which instructions, when executed by one or more processors, cause the one or more processors to carry out the steps of:
-
receiving at a database server an XML document for storage in the relational database;
storing in the relational database mapping information that indicates a mapping of one or more fields in the XML document to corresponding columns in the relational database;
storing data from the XML document in the relational database in locations that are determined based on the mapping information; and
in response to the database server receiving a request for data from the XML document, inspecting the mapping information to determine how to access the data from the XML document.
-
Specification