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 ~ informatica triennale > [Progetto] "Blog" Thread Rating: 1 votes, 4.00 average.
Pages (33): « First ... « 23 24 25 26 [27] 28 29 30 31 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
primu2002
.amico.

User info:
Registered: Jan 2007
Posts: 37 (0.01 al dì)
Location:
Corso: TICO
Anno: 1
Time Online: 14:01:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao ragazzi. Siamo veramente in mezzo al mare a causa dei trigger.
Noi stiamo utilizzando Mysql 5.0.27
Il dilemma è questo:
- dobbiamo anche noi inserire una funzione che richiami il trigger stesso?
abbiamo provato ad inserire direttamente il trigger da linea di comando (per prova) ma all'istruzione New.data = '2007-02-02' ci resituisce un errore.
Qual'è la sintassi che dobbiamo utilizzare?
Qualcuno potrebbe fornirci un esempio funzionante per mysql?
Come richiamiamo il trigger stesso?
Aiutateci!!!!!!!!!!

12-04-2007 17:03
Click Here to See the Profile for primu2002 Click here to Send primu2002 a Private Message Find more posts by primu2002 Add primu2002 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sicuramente ci sarà una funzione di mysql che restituisce la data..

New.data = data(); dovrai scrivere una cosa simile

nessuno che ha fatto xml??? io lo devo ancora vedere ma volevo sentire qualche parere

Last edited by Gehur on 12-04-2007 at 17:40

12-04-2007 17:36
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ponte
.amico.

User info:
Registered: Jan 2005
Posts: 39 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 5:10:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

perche se faccio
pg_exec($db_handle,"INSERT INTO contein(percorso) VALUES ('upload_cont/$file_name')");
CON UN SOLO CAMPO DA INSERIRE FUNZINA E SE NE METTO PIU DI UNO NN FUNZIONA ........CAVOLO!!!!!

12-04-2007 18:28
Click Here to See the Profile for ponte Click here to Send ponte a Private Message Find more posts by ponte Add ponte to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ponte
.amico.

User info:
Registered: Jan 2005
Posts: 39 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 5:10:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ESISTE UN MODO ALTERNATIVO PER FARE INSERT DA PHP?

12-04-2007 18:29
Click Here to See the Profile for ponte Click here to Send ponte a Private Message Find more posts by ponte Add ponte to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

$query = "INSERT INTO argomento (profilo,argomento) VALUES (";
$query .= " ' ";
$query .= $profilo;
$query .= "',";
$query .= " ' ";
$query .= $value;
$query .= "')";
pg_query($conn,$query);

dive in $profilo ce il valore, se invece vuoi scrivere tu il valore devi fare

$query = "INSERT INTO argomento (profilo,argomento) VALUES (";
$query .= " 213,231)";


chi è in grado di risolvere questo errore sql??????

more than one row returned by a subquery used as an expression

Last edited by Gehur on 12-04-2007 at 19:29

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

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

in pratica devo fare l'aggiunta di nuovi argomenti in un profilo e volevo visualizzare solo gli argomenti che non sono gia presenti nel profilo

per fare questo faccio una except che mi restituisce gli id degli argomenti, poi volevo usare questi id per tirare fuori il titolo

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

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

risolto usando na vista :D

12-04-2007 19:35
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
primu2002
.amico.

User info:
Registered: Jan 2007
Posts: 37 (0.01 al dì)
Location:
Corso: TICO
Anno: 1
Time Online: 14:01:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma la questione nn è riuscire a trovare una funzione x la data, ma riuscire a trovare il modo x implementare i trigger stessi. nn sappiamo proprio dove sbattere la testa!! S.O.S.

12-04-2007 20:36
Click Here to See the Profile for primu2002 Click here to Send primu2002 a Private Message Find more posts by primu2002 Add primu2002 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ponte
.amico.

User info:
Registered: Jan 2005
Posts: 39 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 5:10:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io uso solo due trigger, uno per le modifiche ed uno per il numero di elementi per ogni tipo di contenuto;a quanto sembra funzionano!.........ma nn mi fido molto !mi rompendo le palle....

12-04-2007 20:38
Click Here to See the Profile for ponte Click here to Send ponte a Private Message Find more posts by ponte Add ponte to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
primu2002
.amico.

User info:
Registered: Jan 2007
Posts: 37 (0.01 al dì)
Location:
Corso: TICO
Anno: 1
Time Online: 14:01:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma qualcuno li ha fatti o no con MySql? Sapreste darmi qualche dritta?

12-04-2007 20:44
Click Here to See the Profile for primu2002 Click here to Send primu2002 a Private Message Find more posts by primu2002 Add primu2002 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ponte
.amico.

User info:
Registered: Jan 2005
Posts: 39 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 5:10:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io li ho fatti con postgres quindi nn saprei.se vuoi te ne passo uno dei miei nn so se cambia qualcosA.

12-04-2007 20:46
Click Here to See the Profile for ponte Click here to Send ponte a Private Message Find more posts by ponte Add ponte to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ponte
.amico.

User info:
Registered: Jan 2005
Posts: 39 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 5:10:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

oh mi sono rotto le palle !!!!ah ah ah basta odio i BLOG !!!

12-04-2007 21:29
Click Here to See the Profile for ponte Click here to Send ponte a Private Message Find more posts by ponte Add ponte to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma come avete usato le sessioni????????

12-04-2007 21:36
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ponte
.amico.

User info:
Registered: Jan 2005
Posts: 39 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 5:10:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io nn ho usato le sessioni ..era necessario per il prog da 3 punti?

12-04-2007 21:44
Click Here to See the Profile for ponte Click here to Send ponte a Private Message Find more posts by ponte Add ponte to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by primu2002
ma qualcuno li ha fatti o no con MySql? Sapreste darmi qualche dritta?



http://database.html.it/articoli/le...ger-in-mysql-5/

per oggi basta,spero di non aver problemi a fare la parte su xml altrimenti mi sparo

Last edited by Gehur on 12-04-2007 at 21:49

12-04-2007 21:45
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 19:15.    Post New Thread    Post A Reply
Pages (33): « First ... « 23 24 25 26 [27] 28 29 30 31 » ... Last »   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.054 seconds (71.01% PHP - 28.99% MySQL) con 24 query.