SQL ALTER ADD CONSTRAINTS

Add primary key constraints

ALTER TABLE Persons
ADD PRIMARY KEY (ID);


Add not null constraints

ALTER TABLE table_name MODIFY column_name datatype NOT NULL;





Resource: https://www.tutorialspoint.com/sql/sql-alter-command.htm

Comments

Popular posts from this blog

Submission Lab IOT 2025

Submission Lab Java 2024

module Lab IOT