After the table creation,we can also add the new column to the exiting table using the ALTER TABLE keyword.
Syntax :
ALTER TABLE [TABLE NAME] ADD [COLUMN NAME] [DATA TYPE] [NULL | NOT NULL CONSTRAINT]
Example :
ALTER TABLE Student ADD StudentAddress VARCHAR(100) NULL
No comments:
Post a Comment