SQLite typeof() function
Description
The typeof() function returns a string that indicates the datatype of the expression. The only return values are: "null", "integer", "real", "text", or "blob".
Syntax:
typeof(X)
SQLite Version: 3.8.5
Arguments:
Example: SQLite typeof() function
The following SQLite statement returns the datatype from the given expressions.
SELECT typeof('w3resource.com');
Here is the result.
Sample Output:
typeof('w3resource.com') ------------------------ text
SELECT typeof(5347);
Here is the result.
Sample Output:
typeof(5347) ------------ integer
SELECT typeof(5347.2147);
Here is the result.
Sample Output:
typeof(5347.2147) ----------------- real
SELECT typeof(NULL);
Here is the result.
Sample Output:
typeof(NULL) ------------ null
SELECT typeof('true and false');
Here is the result.
Sample Output:
typeof('true and false') ------------------------ text
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join
We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook