SQLite ZEROBLOB() Function
Example
Return a blob with 4 zero bytes, as a hexadecimal text:
SELECT HEX(ZEROBLOB(4));
Try it Yourself »
Definition and Usage
The ZEROBLOB() function returns a blob with the given number of bytes, all with the value zero.
Tip: Also look at RANDOMBLOB().
Syntax
ZEROBLOB(n)
Parameter Values
| Parameter | Description |
|---|---|
| n | Required. The number of bytes |
Technical Details
| Return type: | Blob |
|---|