nerdexam
Oracle

1Z0-146 · Question #85

You issue the following command to create the PRINT_MEDIA table. CREATE TABLE print_media (product_id NUMBER(3), ad_sourcetext CLOB, ad_photo BLOB); Evaluate the following INSERT statements: INSERT…

The correct answer is E. Only the first, second and third statements are valid. TO_BLOB converts LONG RAW and RAW values to BLOB values.

Handling Large Objects

Question

You issue the following command to create the PRINT_MEDIA table. CREATE TABLE print_media (product_id NUMBER(3), ad_sourcetext CLOB, ad_photo BLOB); Evaluate the following INSERT statements:

INSERT INTO print_media VALUES (1, empty_clob(),empty_blob()); INSERT INTO print_media VALUES (2,'This is a One Line Story',null); INSERT INTO print_media VALUES (3,'This is another One Line Story',empty_blob()); INSERT INTO print_media VALUES (4,empty_clob(),to_blob('This is new Story')); Which of the above INSERT statements are valid?

Options

  • AOnly the first statement is valid.
  • BAll the statements are valid.
  • COnly the first and fourth statements are valid.
  • DOnly the first and second statements are valid.
  • EOnly the first, second and third statements are valid.

How the community answered

(25 responses)
  • A
    4% (1)
  • C
    12% (3)
  • D
    4% (1)
  • E
    80% (20)

Explanation

TO_BLOB converts LONG RAW and RAW values to BLOB values.

Topics

#LOB initialization#empty_clob#empty_blob#to_blob validity

Community Discussion

No community discussion yet for this question.

Full 1Z0-146 Practice