Mysql Compound Statements


  1. Which character does the mysql client program recognize as a statement delimiter?











  1. 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.


  1. Stored programs improve database security.











  1. 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.



  1. What executes on a time activated basis according to a schedule?











  1. 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.


  1. Which of these is defined to execute when the table is modified only?











  1. 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.



  1. Which of these return a result to the client?











  1. 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.