Re: [HS] MySQL : manipulation arithmétique su r des "time"

Top Page

Reply to this message
Author: Patrice Karatchentzeff
Date:  
CC: ML Guilde
Subject: Re: [HS] MySQL : manipulation arithmétique su r des "time"
Olivier Guerrier écrivait :

[...]

 > mysql> select SEC_TO_TIME(TIME_TO_SEC("19:00:00")-TIME_TO_SEC("16:34:00"));
 > +--------------------------------------------------------------+
 > | SEC_TO_TIME(TIME_TO_SEC("19:00:00")-TIME_TO_SEC("16:34:00")) |
 > +--------------------------------------------------------------+
 > | 02:26:00                                                     |
 > +--------------------------------------------------------------+


Impec... C'est encore plus tordu que Perl mais cela me donne le
résultat.

Merci

PK


--
      |\      _,,,---,,_       Patrice KARATCHENTZEFF
ZZZzz /,`.-'`'    -.  ;-;;,_   mailto:p.karatchentzeff@free.fr
     |,4-  ) )-,_. ,\ (  `'-'  http://p.karatchentzeff.free.fr
    '---''(_/--'  `-'\_)