create view view_1 as
(select a.name ,b.sort
form table_1 a,table_2 b
where a.id = b.id)
tablespace space1
with read only--当然是同步的,视图其实是对基本的一个映射
(select a.name ,b.sort
form table_1 a,table_2 b
where a.id = b.id)
tablespace space1
with read only--当然是同步的,视图其实是对基本的一个映射
这个东西怎么用啊?
这个子句在create table 中是可以用的,但是在create view中总是报错 TABLESPACE PUB
*
ERROR 位于第 12 行:
ORA-00933: SQL command not properly ended
Create View "方案名"."视图名"
Is
select a.name ,b.sort
form place2.table_1 a,place2.table_2 b
where a.id = b.idwith read only
(select a.name ,b.sort
form table_1 a,table_2 b
where a.id = b.id)
--tablespace space1 这句不用
with read only
我把place1的用户授权为grant select any table to place1
成功
谢谢大家