當前位置:首頁 > IT技術(shù) > 數(shù)據(jù)庫 > 正文

SQL34 批量插入數(shù)據(jù)
2021-10-28 15:27:32

描述

題目已經(jīng)先執(zhí)行了如下語句:
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批量插入如下數(shù)據(jù)(不能有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 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')

本文摘自 :https://www.cnblogs.com/

開通會員,享受整站包年服務(wù)立即開通 >