SQL | Datatypes

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 table. The table contains the range of data in a particular type.

3. Approximate Numeric Datatype :
The subtypes of this datatype are given in 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.

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

GATE CS Corner    Company Wise Coding Practice

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.

Recommended Posts:

0 Average Difficulty : 0/5.0
No votes yet.