<< previous page   --   table of contents   --   next page >>
| | | | | | | |
  • Return to Table of Contents
  • Table of Contents

    1. General Information
    2. MySQL Installation
    3. Tutorial Introduction
    4. Database Administration
    5. MySQL Optimisation
    6. MySQL Language Reference
    7. MySQL Table Types
    8. MySQL APIs
    9. Extending MySQL

    388 MySQL Technical Reference for Version 4.0.3 Warning:  you should be aware that when you use subtraction between integer values where one is of type UNSIGNED,  the result will be unsigned!  See Section 6.3.5 [Cast Functions], page 437. TINYINT[(M)] [UNSIGNED] [ZEROFILL] A very small integer.  The signed range is -128 to 127.  The unsigned range is 0 to 255. BIT BOOL These are synonyms for TINYINT(1). SMALLINT[(M)] [UNSIGNED] [ZEROFILL] A small integer.  The signed range is -32768 to 32767.  The unsigned range is 0 to 65535. MEDIUMINT[(M)] [UNSIGNED] [ZEROFILL] A medium-size  integer.   The signed range is  -8388608  to  8388607.   The un- signed range is 0 to 16777215. INT[(M)] [UNSIGNED] [ZEROFILL] A normal-size integer.  The signed range is -2147483648 to 2147483647.  The unsigned range is 0 to 4294967295. INTEGER[(M)] [UNSIGNED] [ZEROFILL] This is a synonym for INT. BIGINT[(M)] [UNSIGNED] [ZEROFILL] A large integer. The signed range is -9223372036854775808 to 9223372036854775807 The unsigned range is 0 to 18446744073709551615. Some things you should be aware of with respect to BIGINT columns:    All  arithmetic  is  done  using  signed  BIGINT  or  DOUBLE  values,  so  you shouldn't use unsigned big integers larger than 9223372036854775807 (63 bits) except with bit functions!  If you do that, some of the last digits in the result may be wrong because of rounding errors when converting the BIGINT to a DOUBLE. MySQL 4.0 can handle BIGINT in the following cases:    Use integers to store big unsigned values in a BIGINT column.    In MIN(big_int_column) and MAX(big_int_column).    When using operators (+-*, etc.)  where both operands are integers.    You can always store an exact integer value in a BIGINT column by storing it as a string. In this case, MySQL will perform a string-to-number conversion that involves no intermediate double representation.    `-', `+', and `*' will use BIGINT arithmetic when both arguments are integer values!  This means that if you multiply two big integers (or results from functions that return integers) you may get unexpected results when the result is larger than 9223372036854775807.
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    MERCHANT ACCOUNTS
    DEDICATED SERVERS
    E-COMMERCE HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN
    REGISTRATION
    MANAGE
    YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    Corporate Info
    ABOUT US
    OUR NETWORK
    CONTACT US
    SITE MAP
    Copyright © 2002 Dyntex Group, Inc. All Rights Reserved
  • Return to Table of Contents
  • Back to top

  • Web Hosting: Manuals & FAQ's

    1. Unix-Based Web Hosting
    2. Unix Dedicated Servers
    3. Windows Dedicated Servers
    4. CuteFTP User’s Guide
    5. CuteHTML User’s Guide
    6. WS_FTP Pro User's Guide
    7. Miva Order User's Guide
    8. Miva Merchant User's Guide