关于Sybase创建视图的问题。。视图不支持子查询?
create view VIEW_NET_SHIFT asselect
(select CONF_VAL3_NAME from sys_conf where SRC_VAL=a.SUBST_ID AND CONF_TYPE ='MAP_ORG_ID' AND STAT ='S0A') as 分局
from VIEW_NET_SHIFTa
;
执行:select * from VIEW_NET_SHIFT 时报错。
错误:Could not execute statement;
Subqueries are allowed onely as arguments of comparisons,IN,EXISTS,
--(opt_Select.cxxx 1789)
SQLCODE=-1005004,ODBC 3 State="HY000"
Line 1,column 1
select * from VIEW_NET_SHIFT
问题补充:创建视图时不会报错,就只在查询视图的时候出现了这样的问题。各位大虾,帮帮小弟吧。 顶一个:victory:
页:
[1]