phpbar.de logo

Mailinglisten-Archive

[php] AW: [php] DB abfrage

[php] AW: [php] DB abfrage

Matthias Klos matthias.klos_(at)_fh-gelsenkirchen.de
Wed, 2 Aug 2000 15:51:10 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0011_01BFFC99.7AA9FDE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

>>ich möchte aus einer datenbank die einträge von den einzelnen Spalten
>>(inhalt nur zahlen) zu einer summe addieren.
>> Wie geht das??

SELECT SUM(spalte) FROM tabelle;

------=_NextPart_000_0011_01BFFC99.7AA9FDE0
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment

Reply-To: <php_(at)_php-center.de>
From: "Christoph Zimmermann" <cz_(at)_deltaweb.de>
Sender: <php-admin_(at)_php-center.de>
To: <php_(at)_php-center.de>
Subject: [php] DB abfrage
Date: Wed, 2 Aug 2000 15:40:23 +0200
Message-ID: <C19655A481843B47B92E263E610A40480152F9_(at)_rom.deltaweb.de>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_000D_01BFFC99.7AA9FDE0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Internet Mail Service (5.5.2650.21)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-UIDL: 8111a0e9696538f114576f9691a0edcf
Importance: Normal
X-Mailman-Version: 1.0b8
X-BeenThere: php_(at)_php-center.de

This is a multi-part message in MIME format.

------=_NextPart_000_000D_01BFFC99.7AA9FDE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Hi,

ich möchte aus einer datenbank die einträge von den einzelnen Spalten
(inhalt nur zahlen) zu einer summe addieren.
Wie geht das??

Danke,
Christoph

------=_NextPart_000_000D_01BFFC99.7AA9FDE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">



DB abfrage



Hi,

ich m=F6chte aus einer datenbank die eintr=E4ge von = den einzelnen Spalten (inhalt nur zahlen) zu einer summe = addieren.
Wie geht das??

Danke,
Christoph

------=_NextPart_000_000D_01BFFC99.7AA9FDE0-- ------=_NextPart_000_0011_01BFFC99.7AA9FDE0--

php::bar PHP Wiki   -   Listenarchive