Quiz 16

Quiz yourself on INSERT query and basic queries regarding date and time functions in MySQL.

Question # 1

Q

Consider the following table:

CREATE TABLE Name ( 
             LastName VARCHAR(5) 
);

What will happen when the following statements are executed?

INSERT INTO Name VALUES('Smith');
INSERT IGNORE INTO Name VALUES('Edward');
A)

Both names are inserted successfully.

B)

Error: Data too long for column LastName.

Get hands-on with 1400+ tech skills courses.