Data Types
- SPATIAL indexes cannot be created on NOT NULL spatial columns.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
The ‘SPATIAL’ indexes can be created on ‘NOT NULL’ spatial columns. Therefore, if it is planned to index the column, it would need to be declared as NOT NULL. This type can be used in many ways.
- Which type can store a collection of objects of any type?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
‘GEOMETRYCOLLECTION’ can store a collection of objects of any type. The other collection types like ‘MULTIPOINT’, ‘MULTILINESTRING’, ‘MULTIPOLYGON’ and ‘GEOMETRYCOLLECTION’ restrict collection members to those having a particular geometry type.
- Which classes does spatial data types in MySQL correspond to?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
MySQL has spatial data types that correspond to OpenGIS classes. Some of them that hold single geometry values are ‘GEOMETRY’, ‘POINT’, ‘LINESTRING’ and ‘POLYGON’. Some can hold collection of values.
- Which is the header that should be included first?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The file ‘my_global.h’ takes care of including several other header files that are likely to be generally useful, like ‘stdio.h’. It also includes Windows compatibility information.
- Which is the library file that contains various portability macros and definitions?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The ‘my_sys.h’ header file contains a variety of portability macros and definitions required for structures and functions. These structures and functions are used by the client library.