Mysql Compound Statements
- The statement used to remove indexes on tables is ______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
MySQL provides statements to change the structure of tables. To add or remove the indexes on the existing database tables, the ‘CREATE INDEX’ and ‘DROP INDEX’ tables are used.
- What can be used in place of MYSQL_SERVER_VERSION?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The macros ‘LIBMYSQL_VERSION’ and ‘LIBMYSQL_VERSION_ID’ have the same values as ‘MYSQL_SERVER_VERSION’ and ‘MYSQL_VERSION_ID’ and the two sets of macros can be used in place of each other.
- When linking to a static MySQL C client library, the client library and the client application can use different compiler options.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Generally, when linking to a static MySQL C client library, the client library and the client application must use the same compiler option when it is required to link the C runtime.
- What does ‘mysql_query()’ return on failure?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Both of the functions named ‘mysql_query()’ and ‘mysql_real_query()’ return zero for statements that succeed. They return non zero for failure. A statement is successfully executed if the server accepts it.
- What is the exec_stmt_ssl written in?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
In MySQL, the ‘sampdb’ distribution contains a source file named ‘exec_stmt_ssl.c’ from which the client program ‘exec_stmt_ssl’ can be built. There is a procedure to build this file.