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 Basi 2011/2012 Thread Rating: 1 votes, 4.00 average.
Pages (12): « First ... « 4 5 6 7 [8] 9 10 11 12 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
paolos
.simpatizzante.

User info:
Registered: Mar 2011
Posts: 13 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 7:25:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao,

il vantaggio é semplicemente che la ricerca su un file ordinato é più veloce,

do un occhiata al link che mi hai mandato,

grazie mille

02-03-2012 17:12
Click Here to See the Profile for paolos Click here to Send paolos a Private Message Find more posts by paolos Add paolos to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gionavisi
.amico.

User info:
Registered: Nov 2009
Posts: 35 (0.01 al dì)
Location: pizzighettone
Corso: informatica
Anno: 2
Time Online: 3:48:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

qualcuno saprebbe dirmi come devo istallare apache e php su Lion?

09-03-2012 14:58
Click Here to See the Profile for gionavisi Click here to Send gionavisi a Private Message Find more posts by gionavisi Add gionavisi to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gionavisi
.amico.

User info:
Registered: Nov 2009
Posts: 35 (0.01 al dì)
Location: pizzighettone
Corso: informatica
Anno: 2
Time Online: 3:48:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Come si può fare a creare i cluster per la vicinanza geografica?che funzione da inserire in trigger e funzioni si può usare?

come avete questo problema?

11-04-2012 13:53
Click Here to See the Profile for gionavisi Click here to Send gionavisi a Private Message Find more posts by gionavisi Add gionavisi to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Qualcuno ha qualche suggerimento per la scadenza degli annunci? Come faccio a creare un trigger che confronta la data odierna con la data di scadenza di ogni annuncio?

14-05-2012 19:20
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu 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

Puoi utilizzare cron oppure usare gli eventi.

Con i trigger non puoi farlo.

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

14-05-2012 19:39
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
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

E se uso Postgres vanno bene lo stesso sia cron che gli eventi?

14-05-2012 19:41
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu 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

Cron sicuramente dato che è "semplicemente" uno script che viene eseguito ogni tot tempo in cui vai ad inserire la query che vuoi sia eseguita.
Non dipende dal DBMS.

http://php.html.it/articoli/leggi/2...e-degli-script/

Per Postgres non ho idea se c'è uno scheduler integrato.

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

14-05-2012 19:51
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
aPiso
.illuminato.

User info:
Registered: Sep 2010
Posts: 158 (0.03 al dì)
Location: Milano
Corso: Informatica
Anno: 3
Time Online: 1 Day, 21:54:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by number15
Cron sicuramente dato che è "semplicemente" uno script che viene eseguito ogni tot tempo in cui vai ad inserire la query che vuoi sia eseguita.
Non dipende dal DBMS.

http://php.html.it/articoli/leggi/2...e-degli-script/

Per Postgres non ho idea se c'è uno scheduler integrato.


C'è pgAgent se proprio vuoi fare così... ma non è più facile calcolare semplicemente la data di scadenza in inserimento, metterla in una colonna, e con la funzione cerca cercare solo gli annunci non scaduti?
Alla fine la consegna del progetto è di non visualizzare gli annunci, non cancellarli, e almeno l'utente ha tutti i suoi annunci nel profilo, anche quelli scaduti!!

Comunque: http://www.pgadmin.org/docs/1.4/pgagent.html

14-05-2012 21:29
Click Here to See the Profile for aPiso Click Here to See the Blog of aPiso Click here to Send aPiso a Private Message Find more posts by aPiso Add aPiso 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

Puoi fare anche come dici tu, ma non è molto ottimizzato.

Io solitamente creo un campo enum 'is_active, che setto a N alla scadenza dell'informazione attraverso lo scheduler.
Quindi li disattivi, non li cancelli.

Nelle query poi ti basterà fare where is_active = 'Y'

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

15-05-2012 07:22
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
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io nella mia tabella annuncio ho i due campi "data_pubbl" e "data_scadenza".. Ma quando faccio la ricerca come faccio a mettere la condizione...
SELECT *
FROM annuncio
WHERE " la data di scadenza non ha superato la data odierna"
???

15-05-2012 10:48
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zack1988
.primate.

User info:
Registered: Oct 2007
Posts: 75 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: 1
Time Online: 2 Days, 2:43:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Per Mysql e Postgresql è now()
data_scadenza < now()

In Oracle si usa sysdate
data_scadenza < sysdate

15-05-2012 11:58
Click Here to See the Profile for zack1988 Click here to Send zack1988 a Private Message Find more posts by zack1988 Add zack1988 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

.

Last edited by pintu on 15-05-2012 at 18:30

15-05-2012 14:51
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

.

Last edited by pintu on 15-05-2012 at 18:31

15-05-2012 15:00
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pintu
.illuminato.

User info:
Registered: Jul 2010
Posts: 248 (0.05 al dì)
Location: Novara
Corso: informatica
Anno:
Time Online: 2 Days, 0:46:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non c'è nessuna soluzione diversa dallo scheduler? Mi sembra assurdo che per un progetto del genere (con 2 lezioni del cavolo sul php, e senza aver mai sentito parlare di pgAgent, cron, eventi ecc) ci si debba scervellare in questo modo. Per ora ho aggiunto un campo boolean alla tabella annuncio cosi quando faccio la ricerca ho il controllo WHERE attivo = TRUE. Ora devo solo capire come fare per settare il campo attivo a FALSE quando la data di scadenza supera la data odierna..

15-05-2012 18:35
Click Here to See the Profile for pintu Click here to Send pintu a Private Message Find more posts by pintu Add pintu 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

Puoi usar la soluzione di aPiso che funziona tranquillamente.

Per far quello che volevi fare tu serve per forza uno scheduler

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

15-05-2012 22:22
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
All times are GMT. The time now is 05:53.    Post New Thread    Post A Reply
Pages (12): « First ... « 4 5 6 7 [8] 9 10 11 12 »   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.042 seconds (84.74% PHP - 15.26% MySQL) con 26 query.