使用如下语句创建视图: CREATE VIEW bo_view AS SELECT b.book_id,book_name,qty FROM book b,orders ord WHERE b.book_id=ord.book_id; 则视图bo_view中( )列是可以更新的
A: ook_id
B: ook_id,book_name
C: qty
D: ook_id,book_name,qty
A: ook_id
B: ook_id,book_name
C: qty
D: ook_id,book_name,qty
举一反三
- 创建表book(id,name,price),其中id为主键。create table book(id varchar __________ not null,.....);横线里进行填空。
- 查询book表中book_name字段和book_price字段的信息,查询语句是 A: select book_name,book_price from book B: select * from book C: select book from book_name,book_price D: select * from book book_name,book_price
- 【单选题】以下哪个 sql 语句表示在 mysql 中创建 book 表,并添加 id 字段和 title 字段? A. create table book{ id varchar(32), title varchar(50) }; B. create table book( id varchar2(32), title varchar2(50) ); C. create table book( id varchar(32), title varchar(50) ); D. create table book[ id varchar(32), title varchar(50) ];
- 要修改book(id,name,price)表中所有书名中以“计算机”开头的书籍的价格上幅5元,可用( )语句。 A: UPDATE book SET price =price+5 WHERE name = ‘计算机*’ B: UPDATE book SET price =price+5 WHERE name LIKE ‘计算机*’ C: UPDATE book SET price =price+5 WHERE name LIKE = ‘计算机%’ D: UPDATE book SET price =price+5 WHERE name LIKE ‘计算机%’
- 现有表book,字段:id(int),title(varchar),price(float);其中id字段设为主键,使用insert语句向book表中插入数据,以下语句正确的是 A: insert into book(title,price) values('java',100) B: c)insert into book values('java',100) C: insert book values('java',100) D: insert into book(id,title,price) values(1,'java',100)