Dbms-2 1 3
Dbms-2 1 3
Learning Objectives:
After reading this INFORMATION SHEET, YOU MUST be able to:
1. Define Identifier in PL/SQL?
2. Know the valid names of identifiers.
3. Illustrates the illegal in PL/SQL.
.
INTRODUCTION
An identifier is the representation within the language of items created by the user, as opposed to language keywords or
commands. Some identifiers stand for dictionary objects, which are the objects you create- such as tables, views,
indexes, columns, and constraints- that are stored in a database. They are called dictionary objects because Derby stores
information about them in the system tables, sometimes known as a data dictionary. SQL also defines ways to alias these
objects within certain statements.
Identifiers
Constant or variable
Exception
Cursor
Reserved word
Label
Up to 30 characters in length
If the only difference between two identifiers is the case of one or more letters, PL/SQL normally treats those two
identifiers as the same.[12] For example, the following identifiers are all considered by PL/SQL to be the same:
lots_of_$MONEY$
LOTS_of_$MONEY$
company_id#
primary_acct_responsibility
First_Name
FirstName
address_line1
S123456
Identifiers are the handles for objects in your program and one of your chief means of communicating with other
programmers. For this reason, many organizations adopt naming conventions; if your project doesn’t require naming
conventions, you will still want to choose variable names carefully...even if you are the only person who will ever see the
code!
Sources: https://docs.oracle.com/javadb/10.6.2.1/ref/crefsqlj18919.html
1.
2.
3.
4.
5.
1.
2.
3.
4.
5.