Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

0

积分

0

好友

4

主题
1#
发表于 2015-4-17 17:28:51 | 查看: 4178| 回复: 2
本帖最后由 yihanehan 于 2015-4-17 17:33 编辑

对表进程字段删除时,出现这个错误,
执行的sql是alter table INF_IMP.WM_J_TASK_ORDER drop column order_id;
QQ图片20150417172529.png
请刘大,帮我看看
3#
发表于 2015-4-18 20:48:51
delete/Update/insert 视图时,如果视图有分组函数、GROUP BY 子句、DISTINCT 关键字、ROWNUM 等伪列、常量表达式这些时,是不能修改视图的。

回复 只看该作者 道具 举报

2#
发表于 2015-4-18 20:45:45
Error:  ORA 1732
Text:   data manipulation operation not legal on this view
-------------------------------------------------------------------------------
Cause:  An attempt was made to use an UPDATE, INSERT, or DELETE statement on a
        view that contains expressions or functions or was derived from more
        than one table.
        If a join operation was used to create the view or the view contains
        virtual columns derived from functions or expressions, then the view
        may only be queried.
Action: UPDATE, INSERT, or DELETE rows in the base tables instead and restrict
        the operations on the view to queries.

视图的虚拟列不能删除,你要在基表上做删除列的操作。

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-21 00:53 , Processed in 0.055235 second(s), 24 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569