Generic Function
Last Updated:2021-04-13
Palo supports the following generic functions:
SLEEP
Description
sleep(int n)
- Function: session sleeps for n seconds, and returns success or failure
- Returned value: bool type
Example
mysql> select sleep(3);
+----------+
| sleep(3) |
+----------+
| 1 |
+----------+
1 row in set (3.07 sec)
Keywords
sleep
VERSION
Description
version()
- Function: return the version number of the current MySQL. With this function, users are compatible with some MySQL clients, but it does not refer to the version of task components in Palo.
- Returned value: string type
Example
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.1.0 |
+-----------+
1 row in set (0.02 sec)
Keywords
version