Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: update a vie

Re: update a vie

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Thu, 10 Oct 2002 06:41:31 +0200
Message-ID: <941aqusg3semo9fmee6crctcmbdae7o7e0@4ax.com>


On Thu, 10 Oct 2002 11:33:45 +0800, "iim" <lianghs_at_163.net> wrote:

>sorry
>
>my view is
>
>CREATE FORCE VIEW
> users ( id, name, password, group_id )
>AS
> SELECT
> student_no,
> student_name,
> password,
> group_id
> FROM
> student
> UNION
> SELECT
> teacher_no,
> teacher_name,
> password,
> group_id
> FROM
> TEACHER
>;
>
>
>"iim" <lianghs_at_163.net> 写入消息新闻:ao2s5k$2k4i$1_at_mail.cn99.com...
>> When i update data from a view, i got the following error. how can i
>correct
>> it ?
>>
>> 01732, 00000, "data manipulation operation not legal on this view"
>> // *Cause:
>> // *Action:
>> /export/home/
>>
>>
>>
>

The documentation would have told you UNION views are not updatable (which is logical, as Oracle can't decide from which table a record comes)
If you are running 8i or higher (you don't mention a version) you can try instead of triggers. Please consult your documentation for further details.

Hth

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Wed Oct 09 2002 - 23:41:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US