如何解决这个“SQL语句被忽略”错误?
发布时间:2020-12-12 08:39:48 所属栏目:MsSql教程 来源:网络整理
导读:我有以下不能编译的小功能: function f_query_01 Return interval Day to second is start_time timestamp(3); end_time timestamp(3); time_diff interval Day to second; c_query_number number;begin start_time := systimestamp; select count(*) into c
我有以下不能编译的小功能:
function f_query_01 Return interval Day to second is start_time timestamp(3); end_time timestamp(3); time_diff interval Day to second; c_query_number number; begin start_time := systimestamp; select count(*) into c_query_number from wg; <--This is the line that errors out end_time := systimestamp; time_diff := start_time - end_time; return time_diff; end f_query_01; 编译器给我以下错误: Error(29,3): PL/SQL: SQL Statement ignored Error(29,44): PL/SQL: ORA-04044: procedure,function,package,or type is not allowed here 是什么导致这个错误,我该如何解决? 解决方法看来表wg不存在.当更新到正确的表名称时,编译工作没有错误.来自表的编译器的消息不存在将是最有帮助的.(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |