Baidu AI Cloud
中国站

百度智能云

Data Warehouse

Generic Function

Palo supports the following generic functions:

1.sleep
2.version

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
Previous
HLL Function
Next
BITMAP Function