0% found this document useful (0 votes)
8 views

SQL - Data Types - 1keydata

Uploaded by

vickroid007
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

SQL - Data Types - 1keydata

Uploaded by

vickroid007
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

3/2/2016 SQL ­ Data Types | 1Keydata

SQL Data Types

SQL Data Warehousing CSS PHP HTML Database Normalization

SQL Tutorial
Basic SQL Commands
SQL SELECT
SQL DISTINCT
SQL WHERE SQL > Data Definition Language (DDL) > Create Table Statement
SQL AND OR
In the CREATE TABLE page, we mentioned that it is necessary to specify the data type for each column when we create a t
SQL IN
what are the different types of data we can store in a table? While it is beyond the scope of this tutorial to list the exact d
SQL BETWEEN
supported by all the major database tools, we can nevertheless group the different data types into the following categorie
SQL Wildcard
SQL LIKE Numeric
SQL ORDER BY Character String
SQL GROUP BY Date/Datetime
SQL HAVING Binary
SQL ALIAS
SQL AS Numeric
SQL SELECT UNIQUE
SQL JOIN This type of data stores numerical values. Data types that fall in this category include Integer, Float, Real, Numeric, or Dec
SQL INNER JOIN functions that operate on this type of data include COUNT, SUM, MAX, MIN, and AVG.
SQL OUTER JOIN
SQL LEFT OUTER JOIN
Character String
SQL CROSS JOIN
This type of data stores character values. The two common types are CHAR(n) and VARCHAR(n). The CHAR(n) data type hol
SQL INSERT INTO
padded with spaces at the end if needed. VARCHAR stands for Varying Char, meaning that the length of the field can vary.
SQL INSERT INTO SELECT
VARCHAR(10) data type holds up to 10 characters. But if data is only 8 characters long, then it will only store 8 characters.
SQL UPDATE
functions that operate on this type of data are discussed in String Functions.
SQL DELETE FROM

Advanced SQL Binary


SQL UNION
SQL UNION ALL This type of data allows us to store binary objects in a database table. Data types that fall in this category include Blob, Bi
SQL Inline View Please note that a field of binary data type cannot be used as keys, and one cannot build a table index using a binary colu
SQL INTERSECT
SQL MINUS Date/Datetime
SQL LIMIT
SQL TOP
This type of data allows us to store date or datetime in a database table. Different databases have very different implemen
date / datetime data type. Common functions that operate on this type of data are discussed in Date Functions.
SQL Subquery
SQL EXISTS
Next: SQL View
SQL CASE
SQL DECODE
SQL AUTO INCREMENT
SQL IDENTITY
Google Web Hosting
Build Your Online Presence With Google Sites. Free 30­Day Trial!
SEQUENCE & NEXTVAL

SQL Functions
SQL Average
SQL COUNT
Copyright © 2016 1keydata.com All Rights Reserved Privacy Policy About Contact
SQL MAX
SQL MIN
SQL SUM
SQL ROUND

String Functions
SQL CAST
SQL CONVERT
SQL CONCATENATE
SQL SUBSTRING
SQL INSTR
SQL TRIM

http://www.1keydata.com/sql/sql­data­types.html 1/1

You might also like