Connection
- MySQL does not provide a date type that has an optional time part.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
In MySQL, there is no data type provided which has an optional time part. The ‘DATE’ type values never have a time part. The ‘DATETIME’ type values must have a time part in them.
- What is the best datatype for a column that is expected to store values up to 2 million?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
The different numeric types used in MySQL are used to store different range of values. To store values of the order of a million, the MEDIUMINT or BIGINT datatype is sufficient.
- The datatype that stores the longest length of strings is ______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
In MySQL, the different string datatypes are used to store different lenghts of the string. Here, the length would refer to the number of characters in the string. TEXT stores longer strings.
- The security context when a user creates a stored program that accesses sensitive data but forgets that other people who can invoke the object have the same access is __________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The security context is bad if a user creates a stored program that accesses sensitive data but forgets that other people who can invoke the object have the same access to that data as its definer.
- Triggers and events are not invoked automatically by the server.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
The triggers and events are invoked automatically by the server, so the concept of invoking user is not applied. Thus, they have no SQL SECURITY characteristic and always execute with definer privileges.