MySQL Database Operations


  1. Which of these is preferred when stored procedures are not being used?
    CLIENT_MULTI_STATEMENTS, mysql_set_server_option()











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    If the program does not use stored procedures anyone is suitable. If the program uses stored procedures and invokes a ‘CALL’ statement that returns a result set, the first method is better.


  1. mysql_next_result() does not return.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The function ‘mysql_next_result()’ returns a status and initiates retrieval of the next set if more results are available. The status is zero if more results are available and -1 if not.



  1. The option that executes all SQL statements in a SQL script irrespective of the number of errors is ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    If SQL queries in a file are run using mysql in batch mode, mysql either quits after the first error. If the –force option is specified all the queries are executed indiscriminately.


  1. What is the statement used to select a default database?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    MySQL has the facility to use various statements specifically at the database level. For selecting a default database, the keyword or clause used is the ‘USE’ statement.



  1. Symlink is an applicable relocation method for ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Symlink is an applicable relocation method for the individual database tables. However, the startup option is better suited relocation method for server PID file and the log files.