Hi,
Es geht um MySQL. Ich konnte im dt. und engl. leider nicht rausfinden, was M bei INTEGER(M) angibt.
Wieso nicht - Stelle nicht gefunden, oder Verstaendnisproblem?
Erst dachte ich, es würde die maximalen Stellen angeben. Dies ist jeder nicht der Fall. Auch bei INT(4) kann man bis zu 10steliige Zahlen speichern. Was gibt M also an?
http://dev.mysql.com/doc/refman/4.1/en/numeric-types.html
"Another extension is supported by MySQL for optionally specifying the display width of integer data types in parentheses following the base keyword for the type (for example, INT(4)). This optional display width is used to display integer values having a width less than the width specified for the column by left-padding them with spaces.
The display width does not constrain the range of values that can be stored in the column, nor the number of digits that are displayed for values having a width exceeding that specified for the column. [...]
When used in conjunction with the optional extension attribute ZEROFILL, the default padding of spaces is replaced with zeros. For example, for a column declared as INT(5) ZEROFILL, a value of 4 is retrieved as 00004."
MfG ChrisB