Professional Documents
Culture Documents
PL-SQL DR - Ahmed Amr
PL-SQL DR - Ahmed Amr
PL/SQL
BY: DR. AHMED AMR
Declarations
• DECLARE
Executable Commands
• BEGIN
• END
PL/SQL – Table creation
begin
execute immediate 'create table student(
student_id number(6),
student_name varchar2(20),
student_address varchar2(30),
constraint student_pk primary key (student_id))';
.
.
END;
PL/SQL – Insert
begin
END;
PL/SQL – Delete
begin
END;
PL/SQL – Update
begin
END;
PL/SQL – using variables
declare
x number(5) := 10;
begin
delete from emp where deptno = x ;
end;
ANY
QUESTIONS ?
DR. AHMED AMR