Professional Documents
Culture Documents
X X X X X X X X: Lexical Units Identifiers
X X X X X X X X: Lexical Units Identifiers
Valid Invalid
Identifier Why Invalid?
(X) (X)
Today x
Last name x contains a space
Isleap$year x
#number
x starts with #
NUMBER# x
Number1to7 x
Copyright © 2020, 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. 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?
SELECT reserved
:= delimiter
'TEST' literal
FALSE literal
-- new process comment
FROM reserved
/* select the country with the
highest elevation */
comment
v_test identificator
4.09 literal
Copyright © 2020, 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.