Workbench Data Definition Language (DDL) 954245 Data Management Workbench Data Definition Language (DDL)
Data Definition Language (DDL) CREATE ALTER DROP
CREATE Statement
INSERT INTO Read: ‘1’ Compare and discuss CREATE Statement in previous page
INSERT INTO Read: ‘ ’ Compare and discuss CREATE Statement in previous page
ALTER Statement Add new column
ALTER Statement Add new column
ALTER Statement
ALTER Statement
ALTER Statement
ALTER Statement
2. ALTER Statement 1. After run SQL major_id for new record = 1
ALTER Statement 2. 1. After run SQL major_id for new record = ?
DROP Statement The DROP TABLE statement is used to delete a table.
The DROP DATABASE statement is used to delete a database.
The TRUNCATE TABLE Statement If we only want to delete the data inside the table, and not the table itself? Then, use the TRUNCATE TABLE statement:
The TRUNCATE TABLE Statement 1. 2. 3. delete the data inside the table
References https://www.youtube.com/watch?v=X_umYKqKaF0 http://dev.mysql.com/doc/workbench/en/wb-sql-editor.html http://www.mysqltutorial.org/mysql-sample-database.aspx http://share.olanlab.com/th/it/blog/view/136