Somar Horas De Campo Tipo Time No Mysql
#1
Posted 25/04/2007, 18:19
02:35:00
01:20:00
03:40:00
Com o comando SUM do MySQL, eu consegui somar determinadas horas, mas dependendo dos minutos delas, o retorno era um valor incorreto. Alguém aí saberia um modo de estar somando estas horas de modo que o valor de retorno seja sempre correto, independente dos valores dos registros? Desde já, obrigado.
- HaroNism likes this
#2
Posted 25/04/2007, 19:51
Seu objetivo é que retorne 07:35:00 (02:35:00 + 01:20:00 + 03:40:00 = 07:35:00)?
Se for, segue:
$sql = mysql_query("SELECT SEC_TO_TIME( SUM( TIME_TO_SEC( nome_campo ) ) ) AS total_horas FROM nome_tabela");
Não sou expert... mas tento ajudar! Mas o que mais preciso é de ajuda! hehehe
#3
Posted 26/04/2007, 12:13
#4
Posted 16/07/2008, 14:13
#5
Posted 25/01/2009, 01:51
#6
Posted 25/01/2009, 19:11
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29
#7
Posted 25/01/2009, 20:54
#8
Posted 25/01/2009, 21:23
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29
#9
Posted 25/09/2017, 13:11
Cheap Drugs From India Cephalexin Side Effect Impacto Del Propecia cialis Amoxicillin Mouth Dissolve
#10
Posted 07/10/2017, 20:04
Acheter Baclofen 25mg buy viagra online Vendo Cialis Italia
#11
Posted 22/10/2017, 04:50
Cialis Tabs India Online Pharmacy viagra Propecia Lakare
Zelande Commander Furosemide 40 viagra Propecia Caro Propecia Mental Side Effects Peyronie'S Disease Cialis E Interazioni
#12
Posted 03/11/2017, 08:50
Macrobid No Physician Approval Ordinare Viagra On Line Wirkung Von Viagra Forum viagra online Cialis Free Sample Phone Zithromax With Alcohol Cheapest Viagra Online
Amoxicillin Dose Naltrexone Online viagra Cialis Homeopathie Kamagra Sans Prescription
Levitra Viagra Cialis Que Es Cialis Levitra viagra Achat Kamagra Gel
Keflex Conjunctivitis Amoxicillin Din cialis buy online Kamagra Ebay Buy Fish Amoxicillin
Pacific Care Pharmacy Port Vila Vanuatu Prix Cialis Boite De 8 Propecia Minoxidil Pattern Baldness cheap cialis My Canadian Pharmacy Corp Tamoxifen Citrate For Sale Levitra After Stroke
#13
Posted 29/11/2017, 10:26
Zithromax And Cialis Kamagra How To Take generic cialis Clomid Masculine Viagra Alle Erbe Naturale Keflex Dose Wound Infection
10 Mg Propanol Online Overnight Prix Cialis France Pharmacie Pillole Viagra Foto viagra prescription Viagra Kosten De
#14
Posted 30/11/2017, 11:09
Cialis En Pharmacie Acquistare Levitra 20mg viagra online prescription Cephalexin Parvo Dog Levitra Dispersable
Cialis Hermosillo Zithromax Three Day Pack Buy Levitra Uk Online viagra prescription Substitute For Zithromax
#15
Posted 06/12/2017, 04:53
Pharmacyrx Levitra Professional 20mg generic viagra Clomid Next Day Delivery Viagra Online Rezeptfrei Kaufen Quand Commencer Nolvadex Apres Deca
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)