Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
syntax:
alter table <old_table_name>
RENAME to <new_table_name>;
Example:
alter table student
RENAME to employee;
Syntax:
alter table <table_name>
ADD CONSTRAINT <tablename_fk> FOREIGN KEY (column_name)
REFERENCES <table_name_asal> (column_name_asal);
Example:
alter table student
ADD CONTRAINT student_fk FOREIGN KEY (stu_emp_id)
REFERENCES employee(emp_id) ;
Example:
Drop database PMS;