4
create view test_view
as
select stu.stuname,stu.stuage+1 newage,cla.claname
from student stu left join class cla on stu.claid=cla.claid;
这个视图哪些列可以更新?并说出理由5 如果创建一个序列,用于为表的主键列生成主键值,则创建该序列时不应该指定一下哪种参数?
a maxvalue 1000
b minvalue 10
c cache 10
d cycle6 如果在创建序列时指定其cache参数值为10,当序列的当前值为5时,数据库突然关闭,再次运行数据库后,序列将从以下哪个值开始?
a 5
b 6
c 11
d 16
create view test_view
as
select stu.stuname,stu.stuage+1 newage,cla.claname
from student stu left join class cla on stu.claid=cla.claid;
这个视图哪些列可以更新?并说出理由5 如果创建一个序列,用于为表的主键列生成主键值,则创建该序列时不应该指定一下哪种参数?
a maxvalue 1000
b minvalue 10
c cache 10
d cycle6 如果在创建序列时指定其cache参数值为10,当序列的当前值为5时,数据库突然关闭,再次运行数据库后,序列将从以下哪个值开始?
a 5
b 6
c 11
d 16
6 c 前提是你的序列的minvalue是1起始值是1
4、newage为虚拟列不能更新 claname不是主表的列不能更新
5、d
6、c
5.d
6.11