DIV/de

From SQLZOO
< DIV
Revision as of 20:54, 21 October 2012 by Peter (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Kompatibilität
a DIV b
DBMSOKAlternative
IngresNein FLOOR(a/b)
MySQLJa
OracleNein FLOOR(a/b)
PostgreSQLNein FLOOR(a/b)
SQL ServerNein FLOOR(a/b)

DIV

a DIV b liefert den Integer-Wert der Division von a durch b.

   8 DIV 3 -> 2  

In diesem Beispiel wird die Bevölkerungszahl jedes Landes in Millionen berechnet.

SELECT name,
       population DIV 1000000
  FROM bbc
SELECT name,
       FLOOR(population/1000000)
  FROM bbc

Siehe auch

Sprache: English  • Deutsch
Personal tools
Namespaces

Variants
Actions
Reference
Toolbox
Google AdSense