Mysql Compound Statements


  1. The columns containing binary value that include null bytes will not print properly using the %s printf() format specifier.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The columns containing binary value including null bytes do not print properly using the %s printf() format specifier. printf() expects a null terminated string. It prints the column value only up to the first null byte.


  1. mysql_fetch_row() returns _______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    ‘mysql_fetch_row()’ returns a MYSQL_ROW value, a pointer to an array of values. If the return value is assigned to a variable named row each value within the row is accessed as row[i].



  1. How many of the following return rows?
    SELECT, SHOW, DESCRIBE











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In MySQL, it is important to note that ‘SELECT’ is not the only statement that returns some rows. Statements like ‘SHOW’, ‘DESCRIBE’, ‘EXPLAIN’ and ‘CHECK TABLE’ do so as well.


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