Juurnal3 SQL
Juurnal3 SQL
3. Write a SQL statement to add a columns ID as the first column of the table
locations.
5. Write a SQL statement change the data type of the column country_id to
integer in the table locations.
6. Write a SQL statement to drop the column city from the table locations.
8. Write a SQL statement to add a primary key for the columns location_id in
the locations table.
9.Write a MySQL statement to drop the existing primary from the table
locations. Ans: ALTER TABLE locations DROP PRIMARY KEY;
10. Truncate table location.
11.Drop Table.