您的位置:首页 > 数据库

Chapter -02 Declaring PL/SQL Variables - 01

2013-04-18 10:53 330 查看

Objectives

After completing this lesson,you should be able to do the following

Recognize valid and invalid identifies.

List the uses of variables.

Declare and initialize variables.

List and descible various data types.

Indentify the benefits of using the %TYPE attribute.

Declare,use and print bind variables.

Use of Vaiables

Variables can be used for:

Temporary storage of data

Manipulation of stored values

Reusability

Demo 02

DECLARE
v_myName        VARCHAR2(20) := 'John';
BEGIN
v_myName := 'Steven';
DBMS_OUTPUT.PUT_LINE('My name is : ' || v_myName);
END;
/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: