SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Linguagem SQL Data DefinitionLanguage (DDL)
Linguagem SQL StructQueryLanguageLinguagem de consulta estruturada para base de dados relacionais É baseada essencialmente na álgebra relacional (Teoria dos conjuntos) A linguagem SQL têm como entrada e saída tabelas
Linguagem SQL Pode-se dividir a linguagem em três grupos distintos DDL – Data DefinitionLanguage(CREATE, ALTER, DROP ) DML – Data ManipulationLanguage(INSERT, UPDATE, DELETE, SELECT) DCL – Data ControlLanguage(GRANT, REVOKE) DTL – Data TransationLanguage(BEGIN WORK, COMMIT, ROLLBACK)
DDL – CREATE  DATABASE Cria base de dados, Tabelas, Indices, Views. CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name [create_specification] ... create_specification: [DEFAULT] CHARACTER SET [=] charset_name | [DEFAULT] COLLATE [=] collation_name http://dev.mysql.com/doc/refman/5.0/en/create-database.html
DDL –CREATE  TABLE CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name (create_definition,...) [table_options]  http://dev.mysql.com/doc/refman/5.0/en/create-table.htm l
DDL – CREATE  INDEX CREATE [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name [index_type] ON tbl_name (index_col_name,...) [index_type] index_col_name: col_name [(length)] [ASC | DESC] index_type: USING {BTREE | HASH}  http://dev.mysql.com/doc/refman/5.0/en/create-index.html
DDL – CREATE  VIEW CREATE [OR REPLACE] [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}] [DEFINER = { user | CURRENT_USER }] [SQL SECURITY { DEFINER | INVOKER }] VIEW view_name [(column_list)] AS select_statement [WITH [CASCADED | LOCAL] CHECK OPTION]  http://dev.mysql.com/doc/refman/5.0/en/create-view.html
DDL – Comando DROP DROP {DATABASE | SCHEMA} [IF EXISTS] db_name DROP INDEX index_name ON tbl_name DROP [TEMPORARY] TABLE [IF EXISTS] tbl_name [, tbl_name] ... [RESTRICT | CASCADE]  DROP VIEW [IF EXISTS] view_name [, view_name] ... [RESTRICT | CASCADE]  http://dev.mysql.com/doc/refman/5.0/en/sql-syntax-data-definition.html
DDL – ALTER  DATABASE ALTER {DATABASE | SCHEMA} [db_name] alter_specification ... ALTER {DATABASE | SCHEMA} db_name UPGRADE DATA DIRECTORY NAME alter_specification: [DEFAULT] CHARACTER SET [=] charset_name | [DEFAULT] COLLATE [=] collation_name http://dev.mysql.com/doc/refman/5.1/en/alter-database.html
DDL – ALTER TABLE ALTER [IGNORE] TABLE nome_tblespecificação_alter [, especificação_alter ...]  Adicionando camposADD [COLUMN] definição_create [FIRST | AFTER nome_coluna ]
DDL – ALTER TABLE (Cont.) Adicionando indexADD INDEX [nome_indice] (index_nome_col,...)  Modificando campo (Inclui nome)CHANGE [COLUMN] nome_col_antigodefinição_create [FIRST | AFTER nome_coluna]
DDL – ALTER TABLE (Cont.) Modificando atributos do campoMODIFY [COLUMN] definição_create [FIRST | AFTER nome_coluna]  Apagando campoDROP [COLUMN] nome_col Apagando chave primária ou indiceDROP PRIMARY KEY  ouDROP INDEX nome_indice
DDL – ALTER TABLE (Cont.) Renomeando tabelaRENAME [TO] nome_nova_tbl Alterando  o conunto de caracteres CHARACTER SET character_set_name [COLLATE collation_name] | table_options http://dev.mysql.com/doc/refman/4.1/pt/alter-table.html
DDL – ALTER VIEW ALTER [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}] [DEFINER = { user | CURRENT_USER }] [SQL SECURITY { DEFINER | INVOKER }] VIEW view_name [(column_list)] AS select_statement [WITH [CASCADED | LOCAL] CHECK OPTION]  http://dev.mysql.com/doc/refman/5.1/en/alter-view.html
DDL -RENAME RENAME {DATABASE | SCHEMA} db_name TO new_db_name;  RENAME TABLE tbl_name TO new_tbl_name [, tbl_name2 TO new_tbl_name2] ...
DDL – Atributos campos (create) NOT NULL | NULL AUTO_INCREMENT DEFAULT valor KEY PRIMARY KEY COMMENTS ‘comentário até 60 char’ CHECK (expr) sexo in (‘F’,’M’)numero >= 0
DDL – Integridade referencial REFERENCES tbl_name (index_col_name,...) [MATCH FULL | MATCH PARTIAL | MATCH SIMPLE] [ON DELETE reference_option] [ON UPDATE reference_option]  reference_option: RESTRICT | CASCADE | SET NULL | NO ACTION
DDL – Tipo de dados (+ usados) INT[(length)] [UNSIGNED] [ZEROFILL]  INTEGER[(length)] [UNSIGNED] [ZEROFILL] |  REAL[(length,decimals)] [UNSIGNED] [ZEROFILL]  DECIMAL[(length[,decimals])] [UNSIGNED] [ZEROFILL] |  DATE  TIME  DATETIME CHAR[(length)] [ VARCHAR(length) [CHARACTER SET charset_name] [COLLATE collation_name]  TEXT [BINARY] [CHARACTER SET charset_name] [COLLATE collation_name]  ENUM(value1,value2,value3,...)

Weitere ähnliche Inhalte

Was ist angesagt?

Avinash database
Avinash databaseAvinash database
Avinash databaseavibmas
 
Creating database using sql commands
Creating database using sql commandsCreating database using sql commands
Creating database using sql commandsBelle Wx
 
Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)Vidyasagar Mundroy
 
SQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate TableSQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate Table1keydata
 
SQL Quick Reference Card
SQL Quick Reference CardSQL Quick Reference Card
SQL Quick Reference CardTechcanvass
 
Sqlcusesprac
SqlcusespracSqlcusesprac
Sqlcusespraclololo85
 
DDL(Data defination Language ) Using Oracle
DDL(Data defination Language ) Using OracleDDL(Data defination Language ) Using Oracle
DDL(Data defination Language ) Using OracleFarhan Aslam
 
Introduction to sql new
Introduction to sql newIntroduction to sql new
Introduction to sql newSANTOSH RATH
 
Basic sql(oracle) queries
Basic sql(oracle) queriesBasic sql(oracle) queries
Basic sql(oracle) queriesHarish Gyanani
 
DDL,DML,SQL Functions and Joins
DDL,DML,SQL Functions and JoinsDDL,DML,SQL Functions and Joins
DDL,DML,SQL Functions and JoinsAshwin Dinoriya
 
mySQL and Relational Databases
mySQL and Relational DatabasesmySQL and Relational Databases
mySQL and Relational Databaseswebhostingguy
 
Creating, altering and dropping tables
Creating, altering and dropping tablesCreating, altering and dropping tables
Creating, altering and dropping tablespunu_82
 
Database Systems - SQL - DDL Statements (Chapter 3/3)
Database Systems - SQL - DDL Statements (Chapter 3/3)Database Systems - SQL - DDL Statements (Chapter 3/3)
Database Systems - SQL - DDL Statements (Chapter 3/3)Vidyasagar Mundroy
 
SQL Tutorial - Basic Commands
SQL Tutorial - Basic CommandsSQL Tutorial - Basic Commands
SQL Tutorial - Basic Commands1keydata
 
Procedure To Store Database Object Size And Number Of Rows In Custom Table
Procedure To Store Database Object Size And Number Of Rows In Custom TableProcedure To Store Database Object Size And Number Of Rows In Custom Table
Procedure To Store Database Object Size And Number Of Rows In Custom TableAhmed Elshayeb
 

Was ist angesagt? (19)

Avinash database
Avinash databaseAvinash database
Avinash database
 
Creating database using sql commands
Creating database using sql commandsCreating database using sql commands
Creating database using sql commands
 
Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)
 
SQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate TableSQL Tutorial - How To Create, Drop, and Truncate Table
SQL Tutorial - How To Create, Drop, and Truncate Table
 
SQL Quick Reference Card
SQL Quick Reference CardSQL Quick Reference Card
SQL Quick Reference Card
 
Bibashsql
BibashsqlBibashsql
Bibashsql
 
Sqlcusesprac
SqlcusespracSqlcusesprac
Sqlcusesprac
 
DDL(Data defination Language ) Using Oracle
DDL(Data defination Language ) Using OracleDDL(Data defination Language ) Using Oracle
DDL(Data defination Language ) Using Oracle
 
Introduction to sql new
Introduction to sql newIntroduction to sql new
Introduction to sql new
 
Basic sql(oracle) queries
Basic sql(oracle) queriesBasic sql(oracle) queries
Basic sql(oracle) queries
 
Db1 lecture4
Db1 lecture4Db1 lecture4
Db1 lecture4
 
DDL,DML,SQL Functions and Joins
DDL,DML,SQL Functions and JoinsDDL,DML,SQL Functions and Joins
DDL,DML,SQL Functions and Joins
 
mySQL and Relational Databases
mySQL and Relational DatabasesmySQL and Relational Databases
mySQL and Relational Databases
 
Creating, altering and dropping tables
Creating, altering and dropping tablesCreating, altering and dropping tables
Creating, altering and dropping tables
 
Database Systems - SQL - DDL Statements (Chapter 3/3)
Database Systems - SQL - DDL Statements (Chapter 3/3)Database Systems - SQL - DDL Statements (Chapter 3/3)
Database Systems - SQL - DDL Statements (Chapter 3/3)
 
SQL Tutorial - Basic Commands
SQL Tutorial - Basic CommandsSQL Tutorial - Basic Commands
SQL Tutorial - Basic Commands
 
Mysql quick guide
Mysql quick guideMysql quick guide
Mysql quick guide
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
 
Procedure To Store Database Object Size And Number Of Rows In Custom Table
Procedure To Store Database Object Size And Number Of Rows In Custom TableProcedure To Store Database Object Size And Number Of Rows In Custom Table
Procedure To Store Database Object Size And Number Of Rows In Custom Table
 

Andere mochten auch

Review of work in progress October 2012 Part 1
Review of work in progress   October 2012 Part 1Review of work in progress   October 2012 Part 1
Review of work in progress October 2012 Part 1Peter Missen
 
7 ingredients to search engine optimisation (SEO) for Joomla
7 ingredients to search engine optimisation (SEO) for Joomla7 ingredients to search engine optimisation (SEO) for Joomla
7 ingredients to search engine optimisation (SEO) for JoomlaPeter Bui
 
Review of work in progress November 2012
Review of work in progress   November 2012Review of work in progress   November 2012
Review of work in progress November 2012Peter Missen
 
タスクボード始めました(仮)++ アジャイルサムライ他流試合
タスクボード始めました(仮)++ アジャイルサムライ他流試合タスクボード始めました(仮)++ アジャイルサムライ他流試合
タスクボード始めました(仮)++ アジャイルサムライ他流試合Yuta Shimakawa
 
WordPress Touch Presentation by Mikey
WordPress Touch Presentation by MikeyWordPress Touch Presentation by Mikey
WordPress Touch Presentation by MikeyPeter Bui
 
Dinamikakelompokprajab3
Dinamikakelompokprajab3Dinamikakelompokprajab3
Dinamikakelompokprajab3acep bambang
 
Review of work in progress March 2012 - Part 6
Review of work in progress   March 2012 - Part 6Review of work in progress   March 2012 - Part 6
Review of work in progress March 2012 - Part 6Peter Missen
 
Power of Open Source
Power of Open SourcePower of Open Source
Power of Open SourcePeter Bui
 
Wordpress Security
Wordpress SecurityWordpress Security
Wordpress SecurityPeter Bui
 
Краткое руководство по обучению пользователей веб-приложений
Краткое руководство по обучению пользователей веб-приложенийКраткое руководство по обучению пользователей веб-приложений
Краткое руководство по обучению пользователей веб-приложенийOleg Goncharenko
 
Diasanpatrick's xavicid
Diasanpatrick's xavicidDiasanpatrick's xavicid
Diasanpatrick's xavicidxavi1090
 
Web workers&parallel.js html5勉強会lt大会
Web workers&parallel.js   html5勉強会lt大会Web workers&parallel.js   html5勉強会lt大会
Web workers&parallel.js html5勉強会lt大会Yuta Shimakawa
 
Review of work in progress March 2012 - Part 2
Review of work in progress   March 2012 - Part 2Review of work in progress   March 2012 - Part 2
Review of work in progress March 2012 - Part 2Peter Missen
 
Complan introduceert Greeen
Complan introduceert GreeenComplan introduceert Greeen
Complan introduceert Greeenkimsarucco
 

Andere mochten auch (18)

Review of work in progress October 2012 Part 1
Review of work in progress   October 2012 Part 1Review of work in progress   October 2012 Part 1
Review of work in progress October 2012 Part 1
 
7 ingredients to search engine optimisation (SEO) for Joomla
7 ingredients to search engine optimisation (SEO) for Joomla7 ingredients to search engine optimisation (SEO) for Joomla
7 ingredients to search engine optimisation (SEO) for Joomla
 
Management
ManagementManagement
Management
 
Review of work in progress November 2012
Review of work in progress   November 2012Review of work in progress   November 2012
Review of work in progress November 2012
 
タスクボード始めました(仮)++ アジャイルサムライ他流試合
タスクボード始めました(仮)++ アジャイルサムライ他流試合タスクボード始めました(仮)++ アジャイルサムライ他流試合
タスクボード始めました(仮)++ アジャイルサムライ他流試合
 
WordPress Touch Presentation by Mikey
WordPress Touch Presentation by MikeyWordPress Touch Presentation by Mikey
WordPress Touch Presentation by Mikey
 
Dinamikakelompokprajab3
Dinamikakelompokprajab3Dinamikakelompokprajab3
Dinamikakelompokprajab3
 
Technology update
Technology updateTechnology update
Technology update
 
Heal from within
Heal from withinHeal from within
Heal from within
 
Review of work in progress March 2012 - Part 6
Review of work in progress   March 2012 - Part 6Review of work in progress   March 2012 - Part 6
Review of work in progress March 2012 - Part 6
 
Power of Open Source
Power of Open SourcePower of Open Source
Power of Open Source
 
Wordpress Security
Wordpress SecurityWordpress Security
Wordpress Security
 
Краткое руководство по обучению пользователей веб-приложений
Краткое руководство по обучению пользователей веб-приложенийКраткое руководство по обучению пользователей веб-приложений
Краткое руководство по обучению пользователей веб-приложений
 
Diasanpatrick's xavicid
Diasanpatrick's xavicidDiasanpatrick's xavicid
Diasanpatrick's xavicid
 
Web workers&parallel.js html5勉強会lt大会
Web workers&parallel.js   html5勉強会lt大会Web workers&parallel.js   html5勉強会lt大会
Web workers&parallel.js html5勉強会lt大会
 
Heal from within
Heal from withinHeal from within
Heal from within
 
Review of work in progress March 2012 - Part 2
Review of work in progress   March 2012 - Part 2Review of work in progress   March 2012 - Part 2
Review of work in progress March 2012 - Part 2
 
Complan introduceert Greeen
Complan introduceert GreeenComplan introduceert Greeen
Complan introduceert Greeen
 

Ähnlich wie Linguagem sql

Ähnlich wie Linguagem sql (20)

SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL Commands
 
Introducción rápida a SQL
Introducción rápida a SQLIntroducción rápida a SQL
Introducción rápida a SQL
 
SQL
SQLSQL
SQL
 
MS SQL - Database Programming Concepts by RSolutions
MS SQL - Database Programming Concepts by RSolutionsMS SQL - Database Programming Concepts by RSolutions
MS SQL - Database Programming Concepts by RSolutions
 
Lab2 ddl commands
Lab2 ddl commandsLab2 ddl commands
Lab2 ddl commands
 
Basic MySQL queries
Basic MySQL queriesBasic MySQL queries
Basic MySQL queries
 
Lab
LabLab
Lab
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
 
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptxhjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
 
sql statements & joins
sql statements & joinssql statements & joins
sql statements & joins
 
lovely
lovelylovely
lovely
 
SQL.pptx
SQL.pptxSQL.pptx
SQL.pptx
 
Chapter 4 Structured Query Language
Chapter 4 Structured Query LanguageChapter 4 Structured Query Language
Chapter 4 Structured Query Language
 
Oracle sql material
Oracle sql materialOracle sql material
Oracle sql material
 
Sql
SqlSql
Sql
 
COMPUTERS SQL
COMPUTERS SQL COMPUTERS SQL
COMPUTERS SQL
 
SQL WORKSHOP::Lecture 10
SQL WORKSHOP::Lecture 10SQL WORKSHOP::Lecture 10
SQL WORKSHOP::Lecture 10
 
Les10 Creating And Managing Tables
Les10 Creating And Managing TablesLes10 Creating And Managing Tables
Les10 Creating And Managing Tables
 
Introducing ms sql_server_updated
Introducing ms sql_server_updatedIntroducing ms sql_server_updated
Introducing ms sql_server_updated
 
Les10.ppt
Les10.pptLes10.ppt
Les10.ppt
 

Linguagem sql

  • 1. Linguagem SQL Data DefinitionLanguage (DDL)
  • 2. Linguagem SQL StructQueryLanguageLinguagem de consulta estruturada para base de dados relacionais É baseada essencialmente na álgebra relacional (Teoria dos conjuntos) A linguagem SQL têm como entrada e saída tabelas
  • 3. Linguagem SQL Pode-se dividir a linguagem em três grupos distintos DDL – Data DefinitionLanguage(CREATE, ALTER, DROP ) DML – Data ManipulationLanguage(INSERT, UPDATE, DELETE, SELECT) DCL – Data ControlLanguage(GRANT, REVOKE) DTL – Data TransationLanguage(BEGIN WORK, COMMIT, ROLLBACK)
  • 4. DDL – CREATE DATABASE Cria base de dados, Tabelas, Indices, Views. CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name [create_specification] ... create_specification: [DEFAULT] CHARACTER SET [=] charset_name | [DEFAULT] COLLATE [=] collation_name http://dev.mysql.com/doc/refman/5.0/en/create-database.html
  • 5. DDL –CREATE TABLE CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name (create_definition,...) [table_options] http://dev.mysql.com/doc/refman/5.0/en/create-table.htm l
  • 6. DDL – CREATE INDEX CREATE [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name [index_type] ON tbl_name (index_col_name,...) [index_type] index_col_name: col_name [(length)] [ASC | DESC] index_type: USING {BTREE | HASH} http://dev.mysql.com/doc/refman/5.0/en/create-index.html
  • 7. DDL – CREATE VIEW CREATE [OR REPLACE] [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}] [DEFINER = { user | CURRENT_USER }] [SQL SECURITY { DEFINER | INVOKER }] VIEW view_name [(column_list)] AS select_statement [WITH [CASCADED | LOCAL] CHECK OPTION] http://dev.mysql.com/doc/refman/5.0/en/create-view.html
  • 8. DDL – Comando DROP DROP {DATABASE | SCHEMA} [IF EXISTS] db_name DROP INDEX index_name ON tbl_name DROP [TEMPORARY] TABLE [IF EXISTS] tbl_name [, tbl_name] ... [RESTRICT | CASCADE] DROP VIEW [IF EXISTS] view_name [, view_name] ... [RESTRICT | CASCADE] http://dev.mysql.com/doc/refman/5.0/en/sql-syntax-data-definition.html
  • 9. DDL – ALTER DATABASE ALTER {DATABASE | SCHEMA} [db_name] alter_specification ... ALTER {DATABASE | SCHEMA} db_name UPGRADE DATA DIRECTORY NAME alter_specification: [DEFAULT] CHARACTER SET [=] charset_name | [DEFAULT] COLLATE [=] collation_name http://dev.mysql.com/doc/refman/5.1/en/alter-database.html
  • 10. DDL – ALTER TABLE ALTER [IGNORE] TABLE nome_tblespecificação_alter [, especificação_alter ...] Adicionando camposADD [COLUMN] definição_create [FIRST | AFTER nome_coluna ]
  • 11. DDL – ALTER TABLE (Cont.) Adicionando indexADD INDEX [nome_indice] (index_nome_col,...) Modificando campo (Inclui nome)CHANGE [COLUMN] nome_col_antigodefinição_create [FIRST | AFTER nome_coluna]
  • 12. DDL – ALTER TABLE (Cont.) Modificando atributos do campoMODIFY [COLUMN] definição_create [FIRST | AFTER nome_coluna] Apagando campoDROP [COLUMN] nome_col Apagando chave primária ou indiceDROP PRIMARY KEY ouDROP INDEX nome_indice
  • 13. DDL – ALTER TABLE (Cont.) Renomeando tabelaRENAME [TO] nome_nova_tbl Alterando o conunto de caracteres CHARACTER SET character_set_name [COLLATE collation_name] | table_options http://dev.mysql.com/doc/refman/4.1/pt/alter-table.html
  • 14. DDL – ALTER VIEW ALTER [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}] [DEFINER = { user | CURRENT_USER }] [SQL SECURITY { DEFINER | INVOKER }] VIEW view_name [(column_list)] AS select_statement [WITH [CASCADED | LOCAL] CHECK OPTION] http://dev.mysql.com/doc/refman/5.1/en/alter-view.html
  • 15. DDL -RENAME RENAME {DATABASE | SCHEMA} db_name TO new_db_name; RENAME TABLE tbl_name TO new_tbl_name [, tbl_name2 TO new_tbl_name2] ...
  • 16. DDL – Atributos campos (create) NOT NULL | NULL AUTO_INCREMENT DEFAULT valor KEY PRIMARY KEY COMMENTS ‘comentário até 60 char’ CHECK (expr) sexo in (‘F’,’M’)numero >= 0
  • 17. DDL – Integridade referencial REFERENCES tbl_name (index_col_name,...) [MATCH FULL | MATCH PARTIAL | MATCH SIMPLE] [ON DELETE reference_option] [ON UPDATE reference_option] reference_option: RESTRICT | CASCADE | SET NULL | NO ACTION
  • 18. DDL – Tipo de dados (+ usados) INT[(length)] [UNSIGNED] [ZEROFILL] INTEGER[(length)] [UNSIGNED] [ZEROFILL] | REAL[(length,decimals)] [UNSIGNED] [ZEROFILL] DECIMAL[(length[,decimals])] [UNSIGNED] [ZEROFILL] | DATE TIME DATETIME CHAR[(length)] [ VARCHAR(length) [CHARACTER SET charset_name] [COLLATE collation_name] TEXT [BINARY] [CHARACTER SET charset_name] [COLLATE collation_name] ENUM(value1,value2,value3,...)