diff --git a/docs/user/dql/functions.rst b/docs/user/dql/functions.rst index 6c47e4a976..abbe1bf4ce 100644 --- a/docs/user/dql/functions.rst +++ b/docs/user/dql/functions.rst @@ -97,7 +97,7 @@ Description Argument type: INTEGER/LONG/FLOAT/DOUBLE -Return type: DOUBLE +Return type: same as argument type. Example:: @@ -151,7 +151,7 @@ Return type map: Example:: - os> select add(2, 3), add(3, 2), add(pi(), e()) from people; + > select add(2, 3), add(3, 2), add(pi(), e()) fetched rows / total rows = 1/1 +-------------+-------------+-------------------+ | add(2, 3) | add(3, 2) | add(pi(), e()) | @@ -369,7 +369,7 @@ Return type: DOUBLE Example:: - os> select cosh(0), cosh(1), cosh(pi()) from people; + > select cosh(0), cosh(1), cosh(pi()) fetched rows / total rows = 1/1 +-----------+-------------------+--------------------+ | cosh(0) | cosh(1) | cosh(pi()) | @@ -465,7 +465,7 @@ Return type map: Example:: - os> select divide(2, 3), divide(3, 2), divide(3.0, 2), divide(pi(), e()) from people; + > select divide(2, 3), divide(3, 2), divide(3.0, 2), divide(pi(), e()) fetched rows / total rows = 1/1 +----------------+----------------+------------------+---------------------+ | divide(2, 3) | divide(3, 2) | divide(3.0, 2) | divide(pi(), e()) | @@ -536,7 +536,7 @@ Return type: DOUBLE Example:: - os> select expm1(1) + 1 as `e()`, expm1(0) from people; + > select expm1(1) + 1 as `e()`, expm1(0) fetched rows / total rows = 1/1 +-------------------+------------+ | e() | expm1(0) | @@ -728,7 +728,7 @@ Return type map: Example:: - os> select multiply(2, 3), multiply(2.2, 3.3) from people; + > select multiply(2, 3), multiply(2.2, 3.3) fetched rows / total rows = 1/1 +------------------+----------------------+ | multiply(2, 3) | multiply(2.2, 3.3) | @@ -871,7 +871,7 @@ Return type: DOUBLE Example:: - os> select rint(2.49), rint(2.51) from people; + > select rint(2.49), rint(2.51) fetched rows / total rows = 1/1 +--------------+--------------+ | rint(2.49) | rint(2.51) | @@ -970,7 +970,7 @@ Return type: DOUBLE Example:: - os> select sinh(0), sinh(1), sinh(pi()) from people; + > select sinh(0), sinh(1), sinh(pi()) fetched rows / total rows = 1/1 +-----------+--------------------+--------------------+ | sinh(0) | sinh(1) | sinh(pi()) | @@ -1046,7 +1046,7 @@ Return type map: Example:: - os> select subtract(2, 3), subtract(pi(), e()) from people; + > select subtract(2, 3), subtract(pi(), e()) fetched rows / total rows = 1/1 +------------------+-----------------------+ | subtract(2, 3) | subtract(pi(), e()) |