random_bytes
description
The random_bytes function generates a sequence of random bytes.
Syntax
1. VARCHAR random_bytes(INT len)
Parameters
- len: The
random_bytesfunction takes a single argument, which specifies the length of the generated random byte sequence.
example
1. mysql> select random_bytes(7);
2. +------------------------------------------------+
3. | random_bytes(7) |
4. +------------------------------------------------+
5. | 0x53edd97401fb6d |
6. +------------------------------------------------+
keywords
1. RANDOM BYTES
