All pastes #190413 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-10-03 23:23 UTC
rendered paste body
I have to execute this query:

UPDATE ristoranti SET tipo_cucina = CAST(MULTISET(SELECT REF(t) FROM tipi_cucina t WHERE codice = 'ID01' OR codice = 'ID06') AS t_tipi_cucina) WHERE codice = 9999

ristoranti is a table set on type t_ristorante
t_ristorante_no_albergo is under t_ristoranti
t_ristorante_di_albergo is under t_ristoranti

row of ristoranti with codice = 9999 is a t_ristoranti_no_albergo

t_ristorante_no_albergo has an additional attribute respect t_ristorante: nested table tipo_cucina of t_tipi_cucina type

the error i got is:
ORA-00904: "TIPO_CUCINA": not valid identifier