p is required for an object table.
Here, the p is in fact an object.
SQL> INSERT INTO people_tbl VALUES (
2 person_t ( 345678901, name_t ( 'Bond', 'James', 'C' ), 21 ) );
1 row created.
SQL> INSERT INTO people_tbl VALUES (
2 person_t ( 456789012, name_t ( 'Ball', 'Dragon', 'Z' ), 32 ) );
1 row created.
SQL> SELECT p.pname, p.age FROM people_tbl p
2 WHERE p.pname.fname LIKE 'Jame%' AND p.age > 20;
PNAME(LNAME, FNAME, MI)
--------------------------------------------------------
AGE
----------
NAME_T('Bond', 'James', 'C')
21
|
|
“Learn to light a candle in the darkest moments of someone’s life. Be the light that helps others see; it is what gives life its deepest significance.” ― Roy T. Bennett, The Light in the Heart |