Like in other programming languages, SQL also has certain datatypes available. A brief idea of all the datatypes are discussed below.
1. Binary Datatypes :
There are four subtypes of this datatype which are given below :
2. Exact Numeric Datatype :
There are nine subtypes which are given below in the table. The table contains the range of data in a particular type.
3. Approximate Numeric Datatype :
The subtypes of this datatype are given in the table with the range.
4. Character String Datatype :
The subtypes are given in below table –
5. Unicode Character String Datatype :
The details are given in below table –
6. Date and Time Datatype :
The details are given in below table.
- SELECT INTO statement in SQL
- Pivot and Unpivot in SQL
- Common error in Group By
- Categories of SQL Functions
- Query to find 2nd largest value in a column in Table
- Comparisons between Oracle vs SQL Server
- SQL vs NoSQL: Which one is better to use?
- What are the Best Ways to Write a SQL Query?
- Mathematical functions in MySQL
- MySQL | Ranking Functions
- MySQL | DEFAULT() Function
- MySQL | Recursive CTE (Common Table Expressions)
- MySQL | Group_CONCAT() Function
- MySQL | LEAD() and LAG() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : sunny94