Вы уверены, что order by
является причиной вашего наблюдения?
Я могу сделать вставку в представление с предложением order by:
create table tq84_table (
a number,
b number
);
create view tq84_updateable_view as
select a, b from tq84_table
order by a;
insert into tq84_table values (4,1);
insert into tq84_table values (1,4);
insert into tq84_table values (3,9);
insert into tq84_table values (7,5);
select * from tq84_updateable_view;
insert into tq84_updateable_view values (1,9);
select * from tq84_updateable_view;
Вышеприведенные утверждениябез проблем запускается в Oracle 11 R2.
Вы можете проверить с помощью USER_UPDATABLE_COLUMNS
, какие столбцы можно вставить в:
SQL> select * from user_updatable_columns where table_name = 'TQ84_UPDATEABLE_VIEW';
OWNER TABLE_NAME COLUMN_NAME UPD INS DEL
------------------------------ ------------------------------ ------------------------------ --- --- ---
RENE TQ84_UPDATEABLE_VIEW A YES YES YES
RENE TQ84_UPDATEABLE_VIEW B YES YES YES