-3

What type does "Foo" have in the following:

select XMLElement("Foo", 'Bar') from dual

?

4

1 回答 1

1

It doesn't have a "type" (i.e. it's not a number, date or character string) - it's just the label for the XML node.

The double-quotes stops Oracle from converting the label to uppercase, i.e.:

select XMLElement(Foo, 'Bar') from dual;

<FOO>Bar</FOO>

select XMLElement("Foo", 'Bar') from dual;

<Foo>Bar</Foo>
于 2012-05-07T07:43:24.720 回答