Mysql Compound Statements
- What is the general term for information about databases and the objects in MySQL?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
There are various ways in which MySQL facilitates the methods to obtain information about databases and the objects in them. For example, ‘SHOW’ statements and ‘INFORMATION_SCHEMA’.
- The statement used to change the table name is __________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
To change the name of a table, the keyword ‘RENAME’ can be used. It can be used with the ‘ALTER TABLE’ clause. It can also be used as a statement in itself like ‘RENAME TABLE old_tbl new_tbl’.
- What can be used interchangeably with MYSQL_VERSION_ID?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The ‘LIBMYSQL_VERSION’ and ‘LIBMYSQL_VERSION_ID’ macros have the same values as ‘MYSQL_SERVER_VERSION’ and ‘MYSQL_VERSION_ID’ and the two sets of macros can be used interchangeably.
- The statement that makes changes to the global attributes of the database is ______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The ‘ALTER TABLE’ statement is used to make changes to a global attributes of the database. This statement is followed by the name of the database, character set and collation.
- The statement used to select a default database is ______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
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.