SQL - Table Constraints
Consider this table creation statement:
CREATE TABLE products (
product_id INT PRIMARY KEY,
product_name VARCHAR(50) NOT NULL,
price DECIMAL(5,2)
);
Which of the following statements will cause an error?
Consider this table creation statement:
CREATE TABLE products (
product_id INT PRIMARY KEY,
product_name VARCHAR(50) NOT NULL,
price DECIMAL(5,2)
);
Which of the following statements will cause an error?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions