题目已经先执行了如下语句:
drop table if exists actor; CREATE TABLE actor ( actor_id smallint(5) NOT NULL PRIMARY KEY, first_name varchar(45) NOT NULL, last_name varchar(45) NOT NULL, last_update DATETIME NOT NULL)请你对于表actor批量插入如下数据(不能有2条insert语句哦!)
actor_id | first_name | last_name | last_update |
---|---|---|---|
1 | PENELOPE | GUINESS | 2006-02-15 12:34:33 |
2 | NICK | WAHLBERG | 2006-02-15 12:34:33 |
注意错点:
需要用 ‘ ‘
用法:
INSERT INTO table_name (column1, column2...)
VALUES(expression1, expression2...), (expression1, expression2...);
INSERT INTO actor( actor_id, first_name, last_name, last_update ) VALUES ( 1, 'PENELOPE', 'GUINESS', '2006-02-15 12:34:33' ), ( 2, 'NICK', 'WAHLBERG', '2006-02-15 12:34:33' );