Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Semestr2 / 1 - Oracle / Oracle selected docs / Database concepts.pdf
Скачиваний:
29
Добавлен:
12.05.2015
Размер:
6.96 Mб
Скачать

URI Datatypes

A number of useful functions that operate on XML content have been provided. Many of these are provided both as SQL functions and as member functions of XMLType. For example, function extract() extracts a specific node(s) from an XMLType instance.

You can use XMLType in SQL queries in the same way as any other user-defined datatypes in the system.

See Also:

Oracle9i XML Developer’s Kits Guide - XDK

Oracle9i XML Database Developer’s Guide - Oracle XML DB

Oracle9i Application Developer’s Guide - Advanced Queuing for information about using XMLType with Oracle Advanced Queuing

Chapter 1, "Introduction to the Oracle Server"

URI Datatypes

A URI, or uniform resource identifier, is a generalized kind of URL. Like a URL, it can reference any document, and can reference a specific part of a document. It is more general than a URL because it has a powerful mechanism for specifying the relevant part of the document.

By using UriType, you can do the following:

Create table columns that point to data inside or outside the database.

Query the database columns using functions provided by UriType.

See Also: Oracle9i XML Database Developer’s Guide - Oracle XML

DB

Data Conversion

In some cases, Oracle supplies data of one datatype where it expects data of a different datatype. This is allowed when Oracle can automatically convert the data to the expected datatype. These are some of the functions used:

TO_NUMBER()

TO_CHAR()

TO_NCHAR()

TO_DATE()

12-26 Oracle9i Database Concepts

Data Conversion

TO_CLOB()

TO_NCLOB()

CHARTOROWID()

ROWIDTOCHAR()

ROWIDTONCHAR()

HEXTORAW()

RAWTOHEX()

RAWTONHEX()

REFTOHEX()

See Also: Oracle9i SQL Reference for the rules for implicit datatype conversions

Native Datatypes 12-27

Data Conversion

12-28 Oracle9i Database Concepts

Соседние файлы в папке Oracle selected docs