Serialize XML and save in Oracle with C # and ADO

3

I would like to know if there is something equivalent in Oracle for this select in SQL Server:

select NickName, ExternalId1 from Basics where externalId1 = @externalId1 for xml auto, elements;

And for this select below:

select
x.n.value('OperationId[1]', 'int'),
x.n.value('Name[1]', 'varchar(50)'),
x.n.value('MaxTime[1]', 'float')
from @xml.nodes('/*[1]') x(n);
    
asked by anonymous 02.04.2014 / 05:03

1 answer

1

For the first, yes. It does not matter, actually.

select NickName, ExternalId1 
from Basics 
where externalId1 = @externalId1 
for xml auto, elements;

As for the second, SQL Server accepts XPath , but I believe that in order to work, @xml needs to be populated with a query before.

    
02.04.2014 / 07:12