SQLite TYPEOF() Function
Example
Return the storage class of five values:
SELECT TYPEOF(100), TYPEOF(9.5), TYPEOF('Hi'),
TYPEOF(NULL), TYPEOF(X'00');
Try it Yourself »
Definition and Usage
The TYPEOF() function returns the storage class of a value: null, integer, real, text or blob.
Note: Read more in the SQLite Data Types chapter.
Syntax
TYPEOF(value)
Parameter Values
| Parameter | Description |
|---|---|
| value | Required. The value |
Technical Details
| Return type: | Text |
|---|
More Examples
Example
Return the storage class of the prices:
SELECT ProductName, Price, TYPEOF(Price)
FROM Products;
Try it Yourself »