Home
Add Document
Sign In
Register
PLSQL_2_2_Practice
Home
PLSQL_2_2_Practice
oracle ch 1Full description...
Author:
Santiago Lara
4 downloads
155 Views
65KB Size
Report
DOWNLOAD .PDF
Recommend Documents
No documents
www.oracle.com/academy
Database Programming with PL/SQL 2-2: Recognizing PL/SQL Lexical Units Practice Activities Vocabulary
Identify the vocabulary word for each definition below: Literals
An explicit numeric, character string, date, or Boolean value that is not represented by an identifier.
Delimiters
Symbols that have special meaning to an Oracle database.
Reserved Words
Words that have special meaning to an Oracle database and cannot be used as identifiers.
Comments
Describe the purpose and use of each code segment and are ignored by PL/SQL.
Lexical Units
Building blocks of any PL/SQL block and are sequences of characters including letters, digits, tabs, returns, and symbols.
Identifiers
A name, up to 30 characters in length, given to a PL/SQL object. object.
Try It / Solve It Questions
1. Identify each of the the following identifiers as valid or invalid. If invalid, specify why. Identifier
Today
Valid (X)
today’s_date
number_of_days_in_february_this_ year
x
Contains a space
x
Contains a quote delimiter Contains more than 30 characters
x x x
#number NUMBER#
Why Invalid?
x
Last name
Isleap$year
Invalid (X)
Must Start with a letter
x
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
2
x
Number1to7
2. Identify the reserved words in the following list. Word
Reserved? Y/N
create
Y
make
N
table
Y
seat
N
alter
Y
rename
Y
row
Y
number
Y
web
N
3. What kind of lexical unit (for example Reserved word, Delimiter, Literal, Comment) is each of the following? Value
Lexical Unit
SELECT
Reserved Word
:=
Delimiter
'TEST'
Literal
FALSE
Literal
-- new process
Comment
FROM
Reserved Word
/* select the country with the highest elevation */
Comment
v_test
Identifier
4.09
Literal
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
×
Report "PLSQL_2_2_Practice"
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember me
Forgot password?
Sign In
Our partners will collect data and use cookies for ad personalization and measurement.
Learn how we and our ad partner Google, collect and use data
.
Agree & close