导入.sql文件时,报错如图:这段语句是:
create or replace view KS_TEST.t_hd_sch_usercount as
select s.uuid,s.code,s.title as name,decode(a.userNum ,null,0,a.userNum) as userNum from t_sys_ins s,(select insuuid, count(1) as userNum from t_account group by insuuid) a where s.schflag='是' and s.uuid=a.insuuid(+);但是单独在pl\sql运行这个段语句是没问题的,可以创建视图。
sql