COF-C02 · Question #610
COF-C02 Question #610: Real Exam Question with Answer & Explanation
The correct answer is D: TO_CHAR<ID NUMBER). To unload data from a relational table to JSON format, you can use the TO_CHAR function. This function converts a number to a character string, which can then be serialized into JSON format. While there isn't a direct function specifically named for unloading to JSON, converting
Question
Which function unloads data from a relational table to JSON?
Options
- ATRUNC<ID_NUMBER, -6)
- BTRUNC(ID_NUMBER, 5)
- CID_NUMBER*100
- DTO_CHAR<ID NUMBER)
Explanation
To unload data from a relational table to JSON format, you can use the TO_CHAR function. This function converts a number to a character string, which can then be serialized into JSON format. While there isn't a direct function specifically named for unloading to JSON, converting the necessary fields to a string representation is a common step in preparing data for JSON
Topics
Community Discussion
No community discussion yet for this question.