Mysql Compound Statements
- Which character does the mysql client program recognize as a statement delimiter?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
By default, mysql itself recognizes the semicolon as a statement delimiter, so the delimiter must be redefined temporarily to cause mysql to pass the entire stored program definition to the server.
- Stored programs improve database security.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Stored programs improve database security because controlled access can be enabled to sensitive data by appropriate selection of the privileges a program has when it executes.
- What executes on a time activated basis according to a schedule?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In MySQL, the events execute on a time activated basis according to a schedule. Triggers are defined to execute when the table is modified via INSERT, DELETE or UPDATE statements.
- Which of these is defined to execute when the table is modified only?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
In MySQL, triggers are associated with a table. They are defined to execute when the table is modified via INSERT, DELETE or UPDATE statements. MySQL supports objects to be stored on server side.
- Which of these return a result to the client?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Stored functions return a result from a calculation and can be used in expressions. Stored procedures do not return a result directly but can be used to perform general computations.