Copyright (C) 2000-2012 |
GNU Info (mysql.info)FunctionsFunctions for Use in `SELECT' and `WHERE' Clauses ================================================= A `select_expression' or `where_definition' in a SQL statement can consist of any expression using the functions described below. An expression that contains `NULL' always produces a `NULL' value unless otherwise indicated in the documentation for the operators and functions involved in the expression. *NOTE:* There must be no whitespace between a function name and the parenthesis following it. This helps the MySQL parser distinguish between function calls and references to tables or columns that happen to have the same name as a function. Spaces around arguments are permitted, though. 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. Note: ANSI mode. 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
automatically generated by info2www version 1.2.2.9 |