Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [ORACLE & BDII] errore ref()
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
2003
.simpatizzante.

User info:
Registered: Nov 2003
Posts: 19 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:14:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Exclamation [ORACLE & BDII] errore ref()

Dati questi script di crezione :

code:
-- tipo orario CREATE OR REPLACE TYPE t_orario AS OBJECT ( TitoloMostra VARCHAR(40), Giorno VARCHAR(15), OraApertura NUMBER(5), OraChiusura NUMBER(5) ) / CREATE OR REPLACE TYPE Set_orario AS TABLE OF REF t_orario / CREATE TABLE R_Museo ( Indirizzo VARCHAR(40) PRIMARY KEY, Telefono NUMBER(20), Piano Set_piano, Orario Set_orario ) NESTED TABLE Piano STORE AS tab_piani NESTED TABLE Orario STORE AS tab_orari / -- tabella tipata orario CREATE TABLE R_Orari OF t_orario ( PRIMARY KEY(TitoloMostra,Giorno) ) /


e l'inserimento:
code:
insert into R_Museo values ('Firenze via della Ninna 5','0552388651',Set_piano(),Set_orario()); insert into R_Orari values ('Museo','Martedi','0815','1900'); insert into TABLE(select orario from R_Museo where indirizzo='Firenze via della Ninna 5') select ref(o) from R_Orari o where o.TitoloMostra = 'Museo';


noi volevamo accedere ai campi di orario attravesto la tabella mostra attravesto la query :

code:
select orario.giorno from r_mostra

ma restituisce
code:
select orario.giorno from r_museo * ERRORE alla riga 1: ORA-00904: "ORARIO"."GIORNO": identificativo non valido


e provando questa query:
code:
select orario from r_museo;


restituisce :
code:
SET_ORARIO(0000220208F3197F8638CF46369228A3A0E927E AA0BF9E2AFE26A94DCB 2C832)


che dovrebbe essere l'indirizzo di riferimento alla tabella orario, quindi mettendo il ref(orario) sulla select ...
code:
select ref(orario) from r_museo;


dovrebbe andare ma invce...

code:
select ref(orario) from r_museo * ERRORE alla riga 1: ORA-00904: "ORARIO": identificativo non valido


qualcuno sa aiutarci??

04-05-2005 16:19
Click Here to See the Profile for 2003 Click here to Send 2003 a Private Message Find more posts by 2003 Add 2003 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
GinoPilotino
.grande:maestro.

User info:
Registered: Dec 2002
Posts: 1403 (0.17 al dì)
Location: Segrate
Corso: TI.COM
Anno: Secondo
Time Online: 13 Days, 8:59:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

basi 2...noi l'abbiamo dato ieri.
immagino che questo sia il progetto dei musei/mostre ecc.
spero di ricordarmi ancora qualcosa per risponderti :D

prova così:

select value(r).titolomostra as Titolo_Mostra
from r_museo m, table(m.orario) r
where m.indirizzo='Firenze via della Ninna 5';

dovrebbe funzicare a dovere.

gino.

05-05-2005 17:18
Click Here to See the Profile for GinoPilotino Click Here to See the Blog of GinoPilotino Click here to Send GinoPilotino a Private Message Find more posts by GinoPilotino Add GinoPilotino to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
2003
.simpatizzante.

User info:
Registered: Nov 2003
Posts: 19 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:14:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si siamo riusciti facendo migliaia di tentativi a arrivare alla soluzione (ieri il wifi in dipartimento nn andava e l'ho letto solo ora :oops: )..

è corretta la tua query grazie cmq!!!

p.s. si è quello del museo/mostre :-D

07-05-2005 12:22
Click Here to See the Profile for 2003 Click here to Send 2003 a Private Message Find more posts by 2003 Add 2003 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 10:25.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.067 seconds (43.92% PHP - 56.08% MySQL) con 25 query.