MySQL Database Operations
- mysql_next_result() does not return.
-
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.
- Which of these is preferred when stored procedures are not being used?
CLIENT_MULTI_STATEMENTS, mysql_set_server_option()
-
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.
- What is the embedded server library when building from source enabled by?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
While building from the source, the embedded server library is enabled by using the option ‘–with-embedded-server’ while running ‘configure’. This applies equally to MySQL 5.0 and 5.1.
- Multiple statement execution is not enabled by default.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The ‘multiple-statement’ execution is not enabled by default, so the server must be told that it is intended to be used. There are two ways to tell the server to enable the execution.
- An embedded application includes the server side and client side.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
In MySQL, an embedded application includes both a client side and a server side, in order that it can process one group of options for the client, and another group for the server.