<< 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

    Chapter 6:  MySQL Language Reference 407 You can force MySQL to accept spaces after the function name by starting mysqld with -- ansi or using the CLIENT_IGNORE_SPACE to mysql_connect(), but in this case all function names will become reserved words.  See Section 1.7.2 [ANSI mode], page 31. For the sake of brevity, examples display the output from the mysql program in abbreviated form.  So this: mysql> SELECT MOD(29,9); 1 rows in set (0.00 sec) +-----------+ | mod(29,9) | +-----------+ | 2 | +-----------+ is displayed like this: mysql> SELECT MOD(29,9); -> 2 6.3.1  Non-Type-Speci c Operators and Functions 6.3.1.1  Parentheses ( ... ) Use parentheses to force the order of evaluation in an expression.  For example: mysql> SELECT 1+2*3; -> 7 mysql> SELECT (1+2)*3; -> 9 6.3.1.2  Comparison Operators Comparison operations result in a value of 1 (TRUE), 0 (FALSE), or NULL.  These functions work for both numbers and strings.  Strings are automatically converted to numbers and numbers to strings as needed (as in Perl). MySQL performs comparisons using the following rules:    If one or both arguments are NULL, the result of the comparison is NULL, except for the <=> operator.    If both arguments in a comparison operation are strings, they are compared as strings.    If both arguments are integers, they are compared as integers.    Hexadecimal values are treated as binary strings if not compared to a number.    If one of the arguments is a TIMESTAMP or DATETIME column and the other argument is a constant, the constant is converted to a timestamp before the comparison is performed. This is done to be more ODBC-friendly.
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN REGISTRATION
    MANAGE YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    SITE MAP
    Home
    Hosting Plans | Domain Registration | About Us | Contact Us | Site Map
    Terms of Use | Privacy Policy | Guarantees
    Merchant Accounts

    SpiritHost - web hosting for spiritual and education sites
    SpiritHit.com - Religious and Spiritual Portal
  • 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