ALTER TABLE customers
ADD COLUMN contact_name VARCHAR NOT NULL;
ALTER TABLE table_name
ADD COLUMN new_column_name data_type constraint;
ALTER TABLE table_name
ADD column_name data_type column_constraint;
ALTER TABLE table_name
ADD COLUMN column_name1 data_type constraint,
ADD COLUMN column_name2 data_type constraint,
...
ADD COLUMN column_namen data_type constraint;
Code language: SQL (Structured Query Language) (sql)
ALTER TABLE table_name
ADD COLUMN new_column_name data_type constraint;
Code language: SQL (Structured Query Language) (sql)
UPDATE student
SET name = institute.inst_name
FROM institute
WHERE student.student_id = institute.inst_id;