Oracle
1Z0-909 · Question #42
1Z0-909 Question #42: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-909 to reveal the answer and full explanation for question #42. The question stem and answer options stay visible for context.
JSON
Question
Examine this statement which executes successfully: CREATE TABLE 'fshop' ('product' JSON DEFAULT NULL ) ENGINE=InnoDB; Now, examine a json value contained in the table: {"name" : "orange", "varieties" : [{"VarietyName":"Clementine", "Origin" : ["PA", "BU"] }, {"VarietyName": "tangerine", "Origin" : ["CH","JP"]>]> Which will cause documents to be indexed over the 'name' key?
Options
- AALTER TABLE fshop ADD COLUMN name VARCHAR(20) AS (product- >* S .varieties.
- BALTER TABLE fshop ADD COLUMN name VARCHAR(100) AS (product->' S - varieties' )
- CALTER TABLE fshop ADD COLUMN name VARCHAR(20) AS (product->' S - name' ) VIRTUAL,
- DALTER TABLE fshop ADD COLUMN name VARCHAR(20), ADD KEY idx_name (name) ;
- EALTER TABLE fshop ADD name VARCHAR(20) AS (JSON_ONQUOTE
Unlock 1Z0-909 to see the answer
You've previewed enough free 1Z0-909 questions. Unlock 1Z0-909 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#JSON path expressions#Generated columns#JSON indexing#MySQL JSON functions