求大神们看看这视图格式对不对? CREATE OR REPLACE FORCE VIEW "DROWWAY_CC"."TBL_ET_TRAINER" ("TRAINER_ID", "EMPLOYEE_ID", "TRAINER_NAME", "MEMO", "IS_VALID", "CREATE_TIME", "CSR_NO") AS
select t.user_id as TRAINER_ID,
t.subject_id as EMPLOYEE_ID,
t.user_name as TRAINER_NAME,
t.remark as MEMO,
t.status as IS_VALID,
t.create_time as CREATE_TIME,
t.nickname as CSR_NO
from tbl_sys_users t
where t.status = '1'
; Warning: View created with compilation errors ------解决方案-------------------- 你是使用11g么。。 "DROWWAY_CC"."TBL_ET_TRAINER"
注意点问题,加上双引号的内容在11g中是有意义的,不是随便加的。。 ------解决方案--------------------
CREATE OR REPLACE FORCE VIEW DROWWAY_CC.TBL_ET_TRAINER AS
select t.user_id as TRAINER_ID,
t.subject_id as EMPLOYEE_ID,
t.user_name as TRAINER_NAME,
t.remark as MEMO,
t.status as IS_VALID,
t.create_time as CREATE_TIME,
t.nickname as CSR_NO
from tbl_sys_users t
where t.status = '1'
CREATE OR REPLACE FORCE VIEW DROWWAY_CC.TBL_ET_TRAINER AS
select t.user_id as TRAINER_ID,
t.subject_id as EMPLOYEE_ID,
t.user_name as TRAINER_NAME,
t.remark as MEMO,
t.status as IS_VALID,
t.create_time as CREATE_TIME,
t.nickname