- Rongsen.Com.Cn 版权所有 2008-2010 京ICP备08007000号 京公海网安备11010802026356号 朝阳网安编号:110105199号
- 北京黑客防线网安工作室-黑客防线网安服务器维护基地为您提供专业的服务器维护,企业网站维护,网站维护服务
- (建议采用1024×768分辨率,以达到最佳视觉效果) Powered by 黑客防线网安 ©2009-2010 www.rongsen.com.cn
 
  
    
| 作者:黑客防线网安Oracle维护基地 来源:黑客防线网安Oracle维护基地 浏览次数:0 | 
连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
  SQL> create or replace procedure get_news(
   2 aid in varchar2,atitle in varchar2)
   3 as
   4 begin
   5 select * from cf_news
   6 end;
   7 /
 
警告: 创建的过程带有编译错误。
  SQL> create or replace procedure get_news(
   2 aid in varchar2 ,atitle in varchar2)
   3 as
   4 beging
   5 /
 
警告: 创建的过程带有编译错误。
  SQL> create or replace procedure get_news(
   2 aid in varchar2)
   3 as
   4 begin
   5 select * from cf_news;
   6 end;
   7 /
 
警告: 创建的过程带有编译错误。
  SQL> create or replace procedure get_news
   2 as
   3 begin
   4 select * from cf_news;
   5 end;
   6 /
 
警告: 创建的过程带有编译错误。
  SQL> show errors;
   PROCEDURE GET_NEWS 出现错误:
  
   LINE/COL ERROR
   -------- -------------------------------------
   4/1   PLS-00428: 在此 SELECT 语句中缺少 INTO 子句
   SQL> create or replace procedure get_news
   2 as
   3 aa number;
   4 begin
   5 select count(*) into aa from cf_news;
   6 end;
   7 /
 
过程已创建。
  SQL> create or replace procedure get_news
   2 as
   3 aa number;
   4 begin
   5 select count(*) into aa from cf_news;
   6 dbms_outpub.put_line('aa='||aa);
   7 end;
   8 /
 
警告: 创建的过程带有编译错误。
  SQL> show errors;
   PROCEDURE GET_NEWS 出现错误:
  
   LINE/COL ERROR
   -------- -----------------------------------------
   6/1   PLS-00201: 必须说明标识符 'DBMS_OUTPUB.PUT_LINE'
   6/1   PL/SQL: Statement ignored
   SQL> create or replace procedure get_news
   2 as
   3 aa number;
   4 begin
   5 select count(*) into aa from cf_news;
   6 dbms_output.put_line('aa='||aa);
   7 end;
   8 /
 
过程已创建。
  SQL> set serverout on;
   SQL> execute get_news;
   aa=3
 
PL/SQL 过程已成功完成。
| 我要申请本站:N点 | 黑客防线官网 | | 
| 专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479 |