When I run the PL/SQL block after the CREATE statement, I receive the duplicate key error I would expect if I did not add the hint. Any ideas to why the hint does not work?
CREATE TABLE Sandbox.Clue
(
ID number,
Clue_Name varchar2(8 BYTE),
Quantity number,
PRIMARY KEY (ID)
);
DECLARE
i number := 1;
BEGIN
for i in 1 .. 10
loop
INSERT /*+ IGNORE_ROW_ON_DUPKEY_INDEX(Sandbox.Clue.ID)*/ INTO Sandbox.Clue
(
ID, Clue_Name, Quantity
)
VALUES
(
mod(i, 2), 'Tip', 44
);
end loop;
END;
select * from v$version
give you? That hint was introduced in 11.2. Before that version it's not available.