不允許我試圖使用一個表中插入一行VIEW
作爲虛擬列在這裏
INSERT INTO FIELDI18N(LANGUAGE_ID) VALUES (1);
,但它給了我以下錯誤:
Error starting at line 5 in command:
INSERT INTO FIELDI18N(LANGUAGE_ID) VALUES (1)
Error at Command Line:5 Column:22
Error report:
SQL Error: ORA-01733: virtual column not allowed here
01733. 00000 - "virtual column not allowed here"
*Cause:
*Action:
任何線索?
添加視圖定義:
CREATE OR REPLACE VIEW FIELDI18N("FIELDID", "NAME", "TYPE", "DESCRIPTION", "LANGUAGE_ID")
AS
(SELECT field.fieldid,
field.type,
NVL(i18n.name, field.name) name,
NVL(i18n.description, field.description) description,
i18n.language_id
FROM fields field
JOIN i18n_fields i18n
ON (field.fieldid = i18n.fieldid)
);
請發佈受此影響的對象的創建視圖和表語句。 – 2013-04-22 08:00:19
除非創建了'INSTEAD OF'觸發器,否則連接視圖不可更新。有關詳細信息,請參閱手冊:http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_8004.htm#SQLRF54782,以及http://docs.oracle.com/cd/E11882_01/server.112 /e25494/views.htm#ADMIN11782 – 2013-10-02 07:00:19