Mailinglisten-Archive |
Hallo Andreas (Mueller),
damit Dir Dein Denkfehler klarer wird hier nochmal
ein ausfuehrlicheres Beispiel:
CREATE TABLE timeadd (
zeit time NOT NULL default '00:00:00',
numm int(11) NOT NULL default 0
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO timeadd (zeit, numm) VALUES
('33:33:33', 333333),
('33:33:33', 333333),
('33:33:33', 333333),
('11:11:11', 111111);
SELECT SUM(zeit) AS summe1,
SUM(numm) AS summe2,
SUM(TIME_TO_SEC(zeit)) AS summe3
FROM timeadd;
+---------+---------+--------+
| summe1 | summe2 | summe3 |
+---------+---------+--------+
| 1111110 | 1111110 | 402710 |
+---------+---------+--------+
1 row in set (0.06 sec)
Nun alles klar ... ?
Allen noch ein schoenes Wochenende
m. b. G. Norbert
_____________________
normal: 02682-966898
Notruf: 0163-3613642
---------------------
e.o.m.
--
Infos zur Mailingliste, zur Teilnahme und zum An- und Abmelden unter
-->> http://www.4t2.com/mysql
php::bar PHP Wiki - Listenarchive