SQLite typeof() 函数使用指南
SQLite typeof() 函数返回参数的数据类型,它将返回 null, integer, real, text, 和 blob 这几个字符串中的一个值。
typeof() 语法
这里是 SQLite typeof() 函数的语法:
typeof(x)
参数
x- 必需的。它可以是任意类型的数据。
返回值
SQLite typeof() 函数返回一个表示参数数据类型的字符串,可能值有: null, integer, real, text, 和 blob。
typeof() 实例
本示例展示了 SQLite typeof() 函数的基本用法:
SELECT
typeof(NULL),
typeof(12345),
typeof(1.234),
typeof('abc'),
typeof(X'05');
typeof(NULL) typeof(12345) typeof(1.234) typeof('abc') typeof(X'05')
------------ ------------- ------------- ------------- -------------
null integer real text blob