declare strSql varchar2(2000);
begin
strSql:='select t1.channel_name,(';
strSql:=strSql||'select count(*) from cms_channel t where t.channel_id like ''substr(t1.channel_id,0,1)%''';
strSql:=strSql||')num from cms_channel t1 where t1.channel_level = 1';
execute immediate strSql;
end;
再帮我看一下这条数据那里有问题,看不到执行结果.java.sqlException 报无效索引列
begin
strSql:='select t1.channel_name,(';
strSql:=strSql||'select count(*) from cms_channel t where t.channel_id like ''substr(t1.channel_id,0,1)%''';
strSql:=strSql||')num from cms_channel t1 where t1.channel_level = 1';
execute immediate strSql;
end;
再帮我看一下这条数据那里有问题,看不到执行结果.java.sqlException 报无效索引列
解决方案 »
- Oracle 11g下扩展索引与普通索引联合查询的问题
- 求受ITEM影响的报表
- TNS 监听程序当前无法识别链接描述中请求的服务
- 关于oracle数据库连接
- 关于oracle 11g客户端连接oracle 817的问题
- 视图查询问题
- 哪一条语句的执行效率高?
- 1、在PRO*C程序中为什么有人用#include<sqlca.h>好使,而我却必须得用EXEC SQL BEGIN DECLARE SECTION 才好使?
- oracle在red hat linux7。3下安装问题
- oracle 里能否 把一个数据文件(datafile) 从他的表空间里 删除 ? 可以的话怎么做?(这个文件不需要了)
- ORACLE字符集
- oracle:新手请教用户更改表空间的相关问题
declare strSql varchar2(2000);
begin
strSql:='select t1.channel_name,(';
strSql:=strSql||'select count(*) from cms_channel t where t.channel_id like substr(t1.channel_id,0,1)||''%''';
strSql:=strSql||')num from cms_channel t1 where t1.channel_level = 1';
execute immediate strSql;
end;
strSql:=strSql||'select count(*) from cms_channel t where t.channel_id like substr(t1.channel_id,0,1)||'%'';