Question: MySQL 11. 3. Challenge Altering the comments table A mysql prompt has been opened for you. Using the blog database (use either a single-line or
MySQL
11. 3. Challenge
Altering the comments table
A mysql prompt has been opened for you.
Using the blog database (use either a single-line or a multi-line SQL statement):
1 - Write a SQL ALTER TABLE statement that adds a post_idcolumn to the blog.comments table. This new column should be an INTEGER data type with a max. size of 3 digits, UNSIGNED, it should be NOT NULL and it should work as a FOREIGN KEY that uses as a reference the id column of the blog.posts table.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
