MySQL Database Operations
- What is the statement used to select a default database?
-
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.
- What is the synonym for CHARACTER SET?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
‘CHARACTER SET’ can be abbreviated into ‘CHARSET’ and can be used in the same contexts and statements where ‘CHARACTER SET’ is used. ‘charset’ is the server-supported character set.
- What is the maximum collations a character set can have?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The MySQL server allows simultaneous use of multiple character sets. A given character set is allowed to have one or more collations. It can be chosen according to the need of the database.
- The option that executes all SQL statements in a SQL script irrespective of the number of errors is ______________.
-
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.
- 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.