SQL> drop materialized view test_tb;
drop materialized view test_tb
*
第 1 行出现错误:
ORA-01422: 实际返回的行数超出请求的行数为什么删不了呢?
drop materialized view test_tb
*
第 1 行出现错误:
ORA-01422: 实际返回的行数超出请求的行数为什么删不了呢?
解决方案 »
- 关于ORACLE DataBase 10g Express Edition 是什么数据库,我是个人用户能用吗
- oracle 访问sql server
- Trigger同时更新两个表的问题
- 在线等!!!!Oracle里如何实现 SQL SERVER 的 for xml auto?
- windows2008(32位)上装了plsql,访问64位windows2003的数据库,访问非常慢,请高手帮忙
- 初学者的数据库连接问题!
- 哪能下到oracle for redhat liunx?
- 基础函数
- 816中中文字段名的问题?
- 为什么执行完过程,表中没有数据?
- 有关 SQL 提问 如何 实现 查询结果 分页显示 的SQL 语句
- Oracle 的select into 日期型变量的问题,为什么只有日期,而没有时间呢?
看看:
select count(*) from dual;是否大于1
如果大于1
就执行命令:
delete from dual;
commit;
2 refresh fast on commit with primary key as select * from test1;Materialized view createdSQL> select * from view_test;A B C
-------------------------------------------------------------------------------- ---------- ----------
2 2 2
3 3 3
4 1 1
1 1 1
5 5 5SQL> drop materialized view view_test;Materialized view droppedSQL>
1.在数据库db1上:
create materialized view log on com_sql;
2.在数据库db2上:
create public database link t32_dblin
connect to techline identified by techline
using 'fttest';
3.在数据库db2上基于com_sql建立物化视图
create materialized view com_sql on prebuilt table
refresh fast as select * from com_sql@t32_dblink;
alter materialized view com_sql refresh fast
start with sysdate next sysdate+30/(24*60*60);4.这时再删除就会报错,像这样的物化视图该如何如何删除?