Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unique Index vs. Unique Constraint

748490Feb 18 2010 — edited Feb 18 2010
Hi All,

I'm studying for the Oracle SQL Expert Certification. At one point in the book, while talking about indices, the author says that a unique index is not the same a unique constraint. However, he doesn't explain why they're two different things.

Could anyone clarify the difference between the two, please?

Thanks a lot,

Valerio
This post has been answered by Boneist on Feb 18 2010
Jump to Answer

Comments

mNem
Answer

with t (vCampo1) as

(

select

'<?xml version="1.0" encoding="UTF-8"?>

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">

<S:Body>

<ns2:ConsultaEEHResponse xmlns:ns2="http://jeta.servicios.ws/">

<return>

<codigoError>6</codigoError>

<mensaje>El Banco se encuentra Inactivo para Recaudo.</mensaje>

<resultado>false</resultado>

</return>

</ns2:ConsultaEEHResponse>

</S:Body>

</S:Envelope>'

from dual

)

select a.*

from t,

XMLTABLE(

    xmlnamespaces(

      'http://schemas.xmlsoap.org/soap/envelope/' as "S",

      'http://jeta.servicios.ws/'                 as "ns2"

    ),

     '/S:Envelope/S:Body/ns2:ConsultaEEHResponse/return'

     passing xmltype(vCampo1)

     columns

     codigoError varchar2(5) PATH 'codigoError',

     mensaje varchar2(200) PATH 'mensaje',

     Resultado varchar2(5) PATH 'resultado'

)a

;

Marked as Answer by jeffreehy-JavaNet · Sep 27 2020
jeffreehy-JavaNet

Yes. Thank you very much, I try similar way, but I missed one ")" so a got compilation error. Some time you got the answer in front of you but got blind. Appreciate your help.

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 18 2010
Added on Feb 18 2010
4 comments
58,996 views