Numeric Functions And Operators - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

Character Class
Name
upper
xdigit
mysql>
SELECT 'justalnums' REGEXP '[[:alnum:]]+';
mysql>
SELECT '!!' REGEXP '[[:alnum:]]+';
• [[:<:]],
These markers stand for word boundaries. They match the beginning and end of words, respectively.
A word is a sequence of word characters that is not preceded by or followed by word characters. A
word character is an alphanumeric character in the
mysql>
SELECT 'a word a' REGEXP '[[:<:]]word[[:>:]]';
mysql>
SELECT 'a xword a' REGEXP '[[:<:]]word[[:>:]]';
To use a literal instance of a special character in a regular expression, precede it by two backslash (\)
characters. The MySQL parser interprets one of the backslashes, and the regular expression library
interprets the other. For example, to match the string
the last of the following regular expressions is the correct one:
mysql>
SELECT '1+2' REGEXP '1+2';
mysql>
SELECT '1+2' REGEXP '1\+2';
mysql>
SELECT '1+2' REGEXP '1\\+2';

12.6. Numeric Functions and Operators

Table 12.10. Numeric Functions and Operators
Name
[908]
ABS()
[908]
ACOS()
[908]
ASIN()
ATAN2(),
ATAN()
[908]
ATAN()
[909]
CEIL()
CEILING()
[909]
CONV()
[909]
COS()
[909]
COT()
[909]
CRC32()
DEGREES()
[907]
DIV
[906]
/
[910]
EXP()
[910]
FLOOR()
[910]
LN()
[911]
LOG10()
[911]
LOG2()
Numeric Functions and Operators
Meaning
Uppercase alphabetic characters
Hexadecimal digit characters
[[:>:]]
[908]
[909]
[909]
-> 1
-> 0
class or an underscore (_).
alnum
-> 1
-> 0
that contains the special
1+2
-> 0
-> 0
-> 1
Description
Return the absolute value
Return the arc cosine
Return the arc sine
Return the arc tangent of the two arguments
Return the arc tangent
Return the smallest integer value not less than the argument
Return the smallest integer value not less than the argument
Convert numbers between different number bases
Return the cosine
Return the cotangent
Compute a cyclic redundancy check value
Convert radians to degrees
Integer division
Division operator
Raise to the power of
Return the largest integer value not greater than the
argument
Return the natural logarithm of the argument
Return the base-10 logarithm of the argument
Return the base-2 logarithm of the argument
904
character, only
+

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents