?
Which type can store a collection of objects of any type?
Answer & Solution
Correct Answer:
Option
A
This question is about data types in MySQL, specifically the ones used for geospatial data.
Think of these types like containers for different kinds of geographical information.
* GEOMETRYCOLLECTION is the special one. It's like a big box that can hold any kind of geographical object, like points, lines, polygons, or even other collections! * The other options – MULTIPOINT, MULTILINESTRING, and MULTIPOLYGON – are more specific. They can only store collections of one type: points, lines, or polygons, respectively. So, the answer is Option A: GEOMETRYCOLLECTION.
It's the only type in MySQL that can hold a mix of different geographical objects in a single collection.
Think of these types like containers for different kinds of geographical information.
* GEOMETRYCOLLECTION is the special one. It's like a big box that can hold any kind of geographical object, like points, lines, polygons, or even other collections! * The other options – MULTIPOINT, MULTILINESTRING, and MULTIPOLYGON – are more specific. They can only store collections of one type: points, lines, or polygons, respectively. So, the answer is Option A: GEOMETRYCOLLECTION.
It's the only type in MySQL that can hold a mix of different geographical objects in a single collection.
Join the Discussion
Login to post a comment or share your explanation.
Login