Alter building(Add Column)Write a query to add new column "description" of type varchar(255) add not null constraint to building table.
Question
Solution 1
To add a new column "description" of type varchar(255) and add a not null constraint to the building table, you can use the following SQL query:
ALTER TABLE building
ADD COLUMN description VARCHAR(255) NOT NULL;
Here's the step by step breakdown:
ALTER TABLE building
: This stateme Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study prob
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solv
Similar Questions
Alter building(Add Column)Write a query to add new column "description" of type varchar(255) add not null constraint to building table.
Write a query to change the type of field 'owner_name' in the 'building' table to varchar(500).
How would you add a foreign key constraint on the dept_no column in the EMP table, referring to the id column in the DEPT table?
Write a query to modify the datatype of the column departmentId from VARCHAR(30) to INT in the table 'department'.Refer to the existing table DLL given below:
Write a query to change the datatype of the column starttime to datetime in the table 'bookings' and make it as Not null column