Home >Database >Mysql Tutorial >Oracle的pl/sql 编程的hello实例

Oracle的pl/sql 编程的hello实例

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:24:251022browse

只包括执行部分的pl/sql 块 set serveroutput on --打开输出选项 begin dbms_output.put_line(

只包括执行部分的pl/sql 块

set serveroutput on --打开输出选项

begin

dbms_output.put_line('hello');

end;

相关说明:

dbms_output 是Oracle锁提供的包(类似java的开发包),该包包含了一些过程,put_line 就是dbms_output 包中的一个过程

set serveroutput on 这句话的意思是打开输出结果的意思,如果没有这句话,,结果就不会被输出

set serveroutput off 这句话显而易见是关闭输出结果

这个简单的pl/sql的块编程就完了。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn