我有下面的視圖,我試圖更新視圖。錯誤:「虛擬列不允許在這裏」正在顯示。我該如何安排?更新視圖
感謝 基思Spiteri的
查看:
CREATE OR REPLACE VIEW FilmDetailsView
(Film_Name, Actor_FullName, Hall_Number, Date_Time)
AS SELECT flm.film_name, actor.actor_name || ' ' || actor.actor_surname,
hall.cinemahall_number, schedule.schedule_date
FROM film flm
JOIN movieschedule schedule
ON (flm.film_id = schedule.schedule_filmid)
JOIN cinemahall hall
ON (schedule.schedule_hallid = hall.cinemahall_id)
JOIN FilmActor filmactor
ON (flm.film_id = filmactor.filmactor_filmid)
JOIN Actor actor
ON (actor.actor_id = filmactor.filmactor_actorid);
更新:
UPDATE FILMDETAILSVIEW
SET ACTOR_FULLNAME = 'a'
WHERE HALL_NUMBER = 1;
的錯誤:
Error starting at line 312 in command:
UPDATE FILMDETAILSVIEW
SET ACTOR_FULLNAME = 'a'
WHERE HALL_NUMBER = 1
Error at Command Line:313 Column:4
Error report:
SQL Error: ORA-01733: virtual column not allowed here
01733. 00000 - "virtual column not allowed here"
*Cause:
*Action:
您希望Oracle在哪裏存儲數據? – 2011-06-09 18:34:16
@Álvaro - +1 - 也許期望的是Oracle會「神奇地拉開全名的名字」...... :) – 2011-06-09 18:36:13
它可以是hall_number ..仍然不起作用 – Mark 2011-06-09 18:42:40