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 > somma tipi TIME in postgres
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
cimax86
.simpatizzante.

User info:
Registered: Jul 2008
Posts: 19 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 3:06:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
somma tipi TIME in postgres

qualcuno potrebbe gentilmente dirmi come posso fare la somma di due TIME in postgres?
visto che per la differenza non c'è nessun problema, ma per la somma sembrerebbe che bisogna usare + interval.
ma non riesco a capire come!

per esempio:
tempo TIME;
se scrivo tempo= tempo+ interval '02:00:00';

viene eseguito.
io invece ho bisogno di inserire una variabile di tipo time dopo interval, ma la sintassi non me lo permette.

24-09-2010 11:54
Click Here to See the Profile for cimax86 Click here to Send cimax86 a Private Message Find more posts by cimax86 Add cimax86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
cimax86
.simpatizzante.

User info:
Registered: Jul 2008
Posts: 19 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 3:06:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok ho risolto bastava semplicemente dichiarare la variabile dopo il + di tipo interval...
eventualmente se si parte da un TIME bisogna fare un cast!

24-09-2010 12:34
Click Here to See the Profile for cimax86 Click here to Send cimax86 a Private Message Find more posts by cimax86 Add cimax86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 23:05.    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.034 seconds (61.74% PHP - 38.26% MySQL) con 27 query.