Write a postgre SQL statement to drop the existing foreign key fk_job_id from job_history table on job_id column, which is referenced to the job_id of jobs table
- Postgre SQL
- 2021-09-29
- mhanasmh00489829403
الأجوبة
ALTER TABLE job_history
DROP CONSTRAINT fk_job_id;
Output:
Now see the structure of the table job_history after being altered.
postgres=# \d job_history
Column | Type | Modifiers
---------------+-----------------------+-----------
employee_id | numeric(6,0) |
start_date | date |
end_date | date |
job_id | character varying(10) |
department_id | numeric(4,0) |أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
معلومات ذات صلة