SQL Data Types
SQL Data Types
Interview
Next
Resour
❯
Tutorial Posts Questions ces
SQL Tutorials
SQL Data Types de ne the type of
1. What is SQL? value that can be stored in a table
2. SQL Data Types column. For example, if we want a
3. SQL Operators column to store only integer values,
then we can de ne it’s data type as
4. SQL Logical
int .
Operators
5. SQL Expressions
6. SQL Keywords Table of Contents [hide] Support Vector Machines in
7. SQL Functions R programming
1 SQL Data Types
8. SQL SELECT
1.1 SQL Data Types important
9. SQL INSERT
points
10. SQL UPDATE
1.2 SQL Numeric Data Types
11. SQL DELETE
1.3 SQL Date and Time Data
12. SQL WHERE
Types
13. SQL DISTINCT
1.4 SQL Character and String
14. SQL ORDER BY
Data Types
15. SQL LIKE
1.5 SQL Unicode Character and
16. SQL IN, NOT IN
String Data Types
17. SQL NULL
1.6 SQL Binary Data Types
18. SQL UNION
1.7 SQL Miscellaneous Data
19. SQL INTERSECT
Types
20. SQL EXCEPT
21. SQL COMMIT
ROLLBACK SQL Data Types
22. SQL Subquery
23. SQL BETWEEN SQL data types can be broadly divided
into following categories.
24. SQL SELECT INTO
25. SQL INSERT INTO
26. SQL LIMIT
27. SQL ALIAS
28. SQL CREATE
DATABASE
29. SQL RENAME
Database
Previous Next
30. SQL DROP
Database
31. SQL SELECT
Database
32. SQL CREATE Table
33. SQL DROP Table
34. SQL ALTER Table
35. SQL TRUNCATE
Table
36. SQL Copy Table
37. SQL Interview
Questions
38. PL/SQL Interview
Questions
1. Numeric data types such as int,
tinyint, bigint, oat, real etc.
Datatype From To
bit 0 1
tinyint 0 255
-9,223,372,036, 9,223,372,036,
bigint
854,775,808 854,775,807
SQL Unicode
Character and String
Data Types
Datatype Description
Variable length
storage with
NVARCHAR
maximum length of
4,000 characters
Variable length
storage with
VARBINARY
maximum length of
8,000 bytes
Variable length
VARBINARY(max) storage with provided
max bytes
Variable length
storage with
IMAGE
maximum size of
2GB binary data
SQL Miscellaneous
Data Types
Datatype Description
SQL
PREV
NEXT
Pankaj
I love Open
Source
technologies Follow Author
and writing
about my
experience
about them
is my
passion.
Comments
September
Bhargav 3, 2020 at 11:04 am
says:
Thank you
Reply Previous Next
ezhil says:
August 6, 2020 at 6:56 pm
Keerthi
February 27, says:
2021 at 10:33 am
Varchar
Reply
GowthamiJune
says:
3, 2020 at 5:50 am
Pankaj says:
June 4, 2020 at 3:36 am
YOurBRo says:
June 26, 2020 at 11:49 pm
prasanna lakshmi
December 2, 2019 says:
at 5:41 am
Ken says:
December 19, 2019 at 12:32 pm
Sylvester Marshall
October says:
4, 2019 at 9:27 pm
Hi Pankaj,
The tutorial contents and
the graphical presentation
are absolutely fantastic.
The amount of efforts you
have taken is highly Previous Next
appreciated and I would
like to express my sincere
gratitude. God Bless you
dear !! Reply
Samuel
October says:
13, 2020 at 12:22 am
Rajaram says:
August 12, 2019 at 10:52 am
Pankaj says:
July 24, 2019 at 9:11 pm
Use varchar or
varchar2 for string
data.
Reply
Ajaykumar
December says
5, 2019 at 9:49 pm
Singh :
use ‘varchar(length)’
datatype Reply
Mr SQL says:
July 9, 2019 at 5:21 am Previous Next
Type BIT is not a numeric
data type, its binary. Also it
is no longer part of SQL
standard. So better to
remove it.
Type YEAR does not exist
in SQL standard. Also
never use year numbers
with only 2 digits
(remember year2k bug?)
You miss the type
BOOLEAN which can have
values true or false. It is
fundamentally different
from BIT.
You miss the type
INTERVAL of which there
are 2 basic ones:
INTERVAL SECONDS (can
include fractions) and
INTERVAL MONTHS.
Type TEXT and NTEXT are
old synonyms for CLOB, so
use CLOB (or CHARACTER
LARGE OBJECT).
Type IMAGE is an old
synonym for BLOB, so use
BLOB (or BINARY LARGE
OBJECT). Reply
sadiqullah says:
April 13, 2019 at 10:52 pm
thank’s so much
Reply
Blabla says:
March 5, 2019 at 4:57 am
Shirajul says:
January 22, 2019 at 10:16 am
Hello,
Is it possible to enter an
Array for a value in a table?
Is there an ARRAY column
type?
Kind Regards, Reply
Sew
Marchsays:
26, 2019 at 3:52 am Previous Next
But why?? I think
better idea is create
another table and
make refferenceReply
Leave a Reply
Your email address will not be
published. Required elds are marked
*
Comment
Name * Email *
Post Comment
© 2020 · Privacy Policy · Terms and Conditions · Contact Us · About · Part of JournalDev IT Services Private Limited