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 > trigger postgres
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
pirlo21
.arcimaestro.

User info:
Registered: Nov 2007
Posts: 352 (0.06 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 21:38:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
trigger postgres

sapete se si possono creare più trigger che scattano in contemporanea sulla stessa tabella? Oppure se un trigger può far partire due funzioni?

21-05-2011 00:01
Click Here to See the Profile for pirlo21 Click here to Send pirlo21 a Private Message Find more posts by pirlo21 Add pirlo21 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
number15
.grande:maestro.

User info:
Registered: Nov 2005
Posts: 652 (0.09 al dì)
Location:
Corso:
Anno:
Time Online: 121 Days, 13:57:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Postgres no idea, ma ti dico per mysql.
1) è possibile creare un solo trigger per lo stesso evento per ogni tabella.
2) con la sintassi begin...end, dovresti poter scrivere dentro tutte le query che vuoi.
Prova a vedere se c'è l'equivalente per postgres

__________________
Portale segnalazioni marchi-negozi di abbigliamento
http://www.ovojo.com

21-05-2011 07:53
Click Here to See the Profile for number15 Click here to Send number15 a Private Message Find more posts by number15 Add number15 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pirlo21
.arcimaestro.

User info:
Registered: Nov 2007
Posts: 352 (0.06 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 21:38:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il manuale di postgres è na schifezza da sto punto di vista...non si capisce niente....
sta di fatto che a me il primo trigger funziona, il secondo pare di no...non so se è un problema mio che ho sbagliato qualcosa oppure se non si può fare

21-05-2011 16:06
Click Here to See the Profile for pirlo21 Click here to Send pirlo21 a Private Message Find more posts by pirlo21 Add pirlo21 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
number15
.grande:maestro.

User info:
Registered: Nov 2005
Posts: 652 (0.09 al dì)
Location:
Corso:
Anno:
Time Online: 121 Days, 13:57:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

mmm dal manuale pare si possa:
"If more than one trigger is defined for the same event on the same relation, the triggers will be fired in alphabetical order by trigger name."

__________________
Portale segnalazioni marchi-negozi di abbigliamento
http://www.ovojo.com

21-05-2011 19:04
Click Here to See the Profile for number15 Click here to Send number15 a Private Message Find more posts by number15 Add number15 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pirlo21
.arcimaestro.

User info:
Registered: Nov 2007
Posts: 352 (0.06 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 21:38:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie...confermo che si può fare... ho provato e riprovato e in effetti funziona

23-05-2011 12:53
Click Here to See the Profile for pirlo21 Click here to Send pirlo21 a Private Message Find more posts by pirlo21 Add pirlo21 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:33.    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.033 seconds (76.52% PHP - 23.48% MySQL) con 26 query.