WEEK-3A BUILT in Character Functions
WEEK-3A BUILT in Character Functions
Data Definition Language (DDL) statements are used to define the database structure
or schema. Some examples:
TRUNCATE - remove all records from a table, including all spaces allocated for the
records are removed.
Sample
Create table student (id number,name varchar2(10), age number)
ALTER
MODIFYING COLUMN
DROP COLUMN
RENAME COLUMN
TRUNCATE DELETES ROWS, YOU CAN NOT RESTORE THE DELETED ROWS
DML
Data Manipulation Language (DML) statements are used for managing data within
schema objects. Some examples:
DELETE - deletes all records from a table, the space for the records remain
TASKS ( You will create your tables )
Practice Exercise #1:
Based on the departments table below, rename the departments table to depts.
Based on the employees table below, add a column called salary that is a number(6) datatype.