Updating a Nested Table
437871Feb 16 2005 — edited Feb 16 2005I am trying to update a column that is a nested table.
UPDATE TABLE(SELECT NT_ID FROM TB_TEST WHERE TEST_ID = 17353) IM
SET IM.NT_ID = 1;
WHERE IM.ITEM_NO_ID = #####;
Where NT_ID is a field from the nested table and TEST_ID is the Primary Key in my TB_TEST table. When I run this it gives me an error of:
ORA-22908: REFERENCE TO NULL TABLE VALUE
I assume this is because NT_ID is currently NULL, and when it pulls the record back, I am pulling a NULL value. Currently all the values will be NULL, but I would like to create a UPDATE Statement that will update that value from NULL to whatever I want.
Please help?