在右侧补全语句,具体编程任务是:
补全右侧代码片段中 create database 下 Begin-End 区间的代码,用来建立数据库 Books ;
补全右侧代码片段中 create table 下 Begin-End 区间的代码,用来建立空表 prices ,其中表结构如下图所示:
补全右侧代码片段中 insert 下 Begin-End 区间的代码,用来插入内容 Harry Potter ,具体内容如下表所示: (我们已经事先帮你插入了内容 Walden ,所以你只要关注 Harry Potter 的插入即可)
补全右侧代码片段中 update 下 Begin-End 区间的代码,用来将 Walden 的价格更新为 $6 。
– ********** create database ********** –
– ********** Begin ********** –
create database Books
– ********** End ********** –
go
use Books
go
– ********** create table ********** –
– ********** Begin ********** –
CREATE TABLE prices
(
ID int IDENTITY(1,1) not null,
Name varchar(20) not null,
price varchar(30) not null
)
– ********** End ********** –
go
SET NOCOUNT ON
– ********** insert ********** –
– *********