0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

PL/SQL① 文字列の出力

Posted at

処理の流れ

「Hello,PL/SQL」を出力する。

ソースコード

set serveroutput on
BEGIN
DBMS_OUTPUT.PUT_LINE('Hello,PL/SQL');
END;
/

解説

SERVEROUTPUT
SQL*Plusの環境変数。文字列を出力させるためにはこれをONにする必要がある

DBMS_OUTPUT.PUT_LINE
SQL*Plusの画面に文字列を表示させるためによく使用される

/
SQL*PlusでPL/SQLを実行する時は、ソースコードの最後を改行し「/」を記述する

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?