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. > Didattica > Corsi A - F > Basi di dati ~ comunicazione digitale > [dubbi] Comandi sql
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
cyber201
.primate.

User info:
Registered: Nov 2002
Posts: 62 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 10:01:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
dubbi sui comandi sql

Durante l'implementazione del progetto mi sono imbattuto in un problema stupido, ma non riesco a trovare soluzione.
Nella creazione delle tabelle in oracle, precisamente nel comando foreign key, la riga contenente l'informazione "ON DELETE RESTRICT ON UPDATE CASCADE" non viene riconosciuta, l'errore dice che manca una parola chiave. Come posso fare per risolvere il mio problema? Come posso esprimere in oracle questi comandi di integrità referenziale?

Un altro dubbio riguarda le stringhe di connessione da usare in ASP per connettermi al database oracle.....

Sapete dove posso trovare una guida completa ai comandi oracle?In internet nn ho trovato gran chè


ciao a tutti e grazieeeee
:-o

11-02-2004 10:54
Click Here to See the Profile for cyber201 Click here to Send cyber201 a Private Message Find more posts by cyber201 Add cyber201 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Rifinitore
.illuminato.

User info:
Registered: Nov 2002
Posts: 189 (0.02 al dì)
Location: Pesaro/Milano
Corso: Laureato
Anno:
Time Online: 2 Days, 17:52:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Anche io mi sono trovato di fronte a questo problema ... e cercando nella documentazione ho trovato che Oracle non implementa l' ON UPDATE CASCADE ...
Quindi io ne ho fatto a meno !

__________________
Peppe
http://www.peppedotnet.it

11-02-2004 18:47
Click Here to See the Profile for Rifinitore Click here to Send Rifinitore a Private Message Find more posts by Rifinitore Add Rifinitore to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
francyghisla
.non è possibile.

User info:
Registered: Nov 2003
Posts: 632 (0.08 al dì)
Location:
Corso: TICOM
Anno: Primo
Time Online: 13 Days, 10:16:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

alla fine come avete risolto?
ve liha richiesti alla consegna il prof?

- ma perchè oracle non funziona come tutti gli altri db? -

08-09-2005 09:14
Click Here to See the Profile for francyghisla Click Here to See the Blog of francyghisla Click here to Send francyghisla a Private Message Find more posts by francyghisla Add francyghisla to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged


cercando nella documentazione ho trovato che Oracle non implementa l' ON UPDATE CASCADE ...

Ecco svelato l'arcano! Ci avrò perso due ore... va beh, tanto non uso Oracle per il progetto :D

__________________
?

08-09-2005 12:10
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Kjir
.fedelissimo.

User info:
Registered: Apr 2004
Posts: 44 (0.01 al dì)
Location: Milano
Corso: Comunicazione digitale
Anno: Terzo
Time Online: 6:27:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by francyghisla
- ma perchè oracle non funziona come tutti gli altri db? -

Provo a rispondere...
Perché nessun db funziona come un altro db?
Perché Oracle ha un target decisamente diverso?
Perché per avere tutte le funzionalità avanzatissime di Oracle per forza di cose bisogna complicare il suo metodo di gestione?

Ma vorrei capire... Voi fate il progetto con Oracle? Alla facciazza... vorrei sapere... come diavolo avete fatto ad installarlo?

Anyway, ecco le risposte che vi servono per la connessione da ASP:

http://www.learnasp.com/learn/FAQOracleconnect.asp

E se per caso usate PHP o ASP.NET ecco qua:

http://www.oracle.com/technology/pu...s/hull_asp.html

In inglese, ovviamente...

23-09-2005 19:22
Click Here to See the Profile for Kjir Click here to Send Kjir a Private Message Visit Kjir's homepage! Find more posts by Kjir Add Kjir to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Rocco.Li
38 Primavere, Dottore !

User info:
Registered: Sep 2003
Posts: 609 (0.07 al dì)
Location: BARLASSINA (MI)
Corso: COMUNICAZIONE DIGITALE
Anno: Finitooooo !!!!
Time Online: 8 Days, 2:31:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Perche non funziona come gli altri DB Oracle ?

Bisognerebbe chiederlo al Sig. Lawrence Ellison ! (il patron di Oracle)

Per implementare "on delete cascade..." e simili l'unico modo per farlo in Oracle e scriversi un bel Trigger in PL/SQL

__________________
Alcuni uomini vedono le cose come sono e dicono: << Perche' ? >>
Io sogno le cose come non sono mai state e dico: << Perche' No ? >>
George Barnard Shaw, Commediografo.

"non preoccuparti troppo, comunque vada la vita, non ne uscirai vivo !" - anonimo

25-09-2005 11:55
Click Here to See the Profile for Rocco.Li Click Here to See the Blog of Rocco.Li Click here to Send Rocco.Li a Private Message Find more posts by Rocco.Li Add Rocco.Li to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged


Voi fate il progetto con Oracle?

Personalmente no, preferisco provare l'accoppiata PHP +MySQL :)


come diavolo avete fatto ad installarlo?

Quando ho dovuto installarlo ho preso qualche nota, prova a vedere se è chiara. La allego :)

Attachment: oracle10g_setup.txt
This has been downloaded 8 time(s).

__________________
?

26-09-2005 00:31
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Kjir
.fedelissimo.

User info:
Registered: Apr 2004
Posts: 44 (0.01 al dì)
Location: Milano
Corso: Comunicazione digitale
Anno: Terzo
Time Online: 6:27:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yeah
Personalmente no, preferisco provare l'accoppiata PHP +MySQL :)

PHP + PostgreSQL, almeno ho anche i trigger :cool:
Originally posted by yeah
Quando ho dovuto installarlo ho preso qualche nota, prova a vedere se è chiara. La allego :)

Ehm non penso che vorrò mai installarlo, ma grazie comunque, magari servirà a qualcun altro :-D

27-09-2005 14:26
Click Here to See the Profile for Kjir Click here to Send Kjir a Private Message Visit Kjir's homepage! Find more posts by Kjir Add Kjir to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Kjir

PHP + PostgreSQL, almeno ho anche i trigger

Mmh... mmh... e per Postgre che devo fare? Per comodità su Windows ho installato EasyPHP, così ho tutto quel che mi serve senza dover configurare nulla :D, ma ho scoperto che MySQL non supporta nemmeno le chiavi esterne (a dir la verità le supporta usando InnoDB, ma bisogna creare i vincoli esplicitamente esternamente alle tabelle).

__________________
?

27-09-2005 23:35
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
bluevelvet
Lo stesso

User info:
Registered: Nov 2002
Posts: 1394 (0.16 al dì)
Location:
Corso: Digitazione Comunale
Anno: Hideaki
Time Online: 52 Days, 16:37:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yeah
ma ho scoperto che MySQL non supporta nemmeno le chiavi esterne (a dir la verità le supporta usando InnoDB, ma bisogna creare i vincoli esplicitamente esternamente alle tabelle).


basta un constraint per le chiavi esterne, non serve innodb.

__________________
"secondo me basta copiarlo in notepad"

27-09-2005 23:47
Click Here to See the Profile for bluevelvet Click Here to See the Blog of bluevelvet Click here to Send bluevelvet a Private Message Find more posts by bluevelvet Add bluevelvet to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Sul manuale ho letto che usando il motore standard (MyIsam), le foreign key non sono tenute in considerazione.
E qui dice che per usare i constraint foreign key entrambe le tabelle devono essere InnoDB.

Adesso è tardi, domani faccio qualche prova. O stiamo intendendo cose diverse? :)

__________________
?

28-09-2005 00:27
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
bluevelvet
Lo stesso

User info:
Registered: Nov 2002
Posts: 1394 (0.16 al dì)
Location:
Corso: Digitazione Comunale
Anno: Hideaki
Time Online: 52 Days, 16:37:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yeah
Sul manuale ho letto che usando il motore standard (MyIsam), le foreign key non sono tenute in considerazione.
E qui dice che per usare i constraint foreign key entrambe le tabelle devono essere InnoDB.

Adesso è tardi, domani faccio qualche prova. O stiamo intendendo cose diverse? :)


io non uso innodb e col motore standard basta un constraint. provato di persona. del tipo...

code:
constraint mio_constraint foreign key blabla references tabella (blabla)

__________________
"secondo me basta copiarlo in notepad"

28-09-2005 10:03
Click Here to See the Profile for bluevelvet Click Here to See the Blog of bluevelvet Click here to Send bluevelvet a Private Message Find more posts by bluevelvet Add bluevelvet to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Kjir
.fedelissimo.

User info:
Registered: Apr 2004
Posts: 44 (0.01 al dì)
Location: Milano
Corso: Comunicazione digitale
Anno: Terzo
Time Online: 6:27:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Dubito che i constraint abbiano un qualche effetto in MySql, non ho provato, ma ho letto anche io le stesse cose sulla documentazione del sito...

Per Postgresql il sito è http://www.postgresql.com/ , c'è anche la versione per Windows, purtroppo non posso aiutarti con l'installazione, l'ho fatto solo su linux e a dire il vero non è neanche finita... (manca la configurazione). Tuttavia la documentazione è abbondante, non so se c'è anche in italiano, ma trovi di tutto e di più in giro (e sul sito stesso)

28-09-2005 15:25
Click Here to See the Profile for Kjir Click here to Send Kjir a Private Message Visit Kjir's homepage! Find more posts by Kjir Add Kjir to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by bluevelvet

io non uso innodb e col motore standard basta un constraint. provato di persona. del tipo...

Potresti farmi un esempio completo, dalla creazione delle tabelle all'inserimento di un dato che viola l'integrità? Perchè oggi ci avrò perso due ore e l'unico modo per ottenere l'integrità è stato usare un esempio nel manuale di MySQL (che usava InnoDB).

Originally posted by Kjir

Per Postgresql il sito è http://www.postgresql.com/ , c'è anche la versione per Windows, purtroppo non posso aiutarti con l'installazione, l'ho fatto solo su linux e a dire il vero non è neanche finita... (manca la configurazione). Tuttavia la documentazione è abbondante, non so se c'è anche in italiano, ma trovi di tutto e di più in giro (e sul sito stesso)

Grazie, ci darò una occhiata :)

[edit] :( Per usare PostgreSQL con PHP devo aver compilato quest'ultimo per avere il supporto al db. Mi dovrò tenere MySQL. Pazienza.

__________________
?

Last edited by yeah on 29-09-2005 at 00:13

28-09-2005 23:41
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Kjir
.fedelissimo.

User info:
Registered: Apr 2004
Posts: 44 (0.01 al dì)
Location: Milano
Corso: Comunicazione digitale
Anno: Terzo
Time Online: 6:27:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

MyIsam accetta la sintassi per il constraint, ma non fa nessun controllo, quindi in pratica è inutile...

Beh non dovrebbe essere difficile attivare l'estensione su php, dipende se su windows o su php, il manuale sicuramente lo spiega bene...

30-09-2005 09:18
Click Here to See the Profile for Kjir Click here to Send Kjir a Private Message Visit Kjir's homepage! Find more posts by Kjir Add Kjir to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 22:02.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   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.143 seconds (62.67% PHP - 37.33% MySQL) con 26 query.