MySQL Functions
- What does mysql_init() return?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
When NULL is passed to mysql_init() it automatically allocates a MYSQL structure, initializes it, and returns a pointer to it. The MYSQL data type is a structure containing information about a connection.
- Which statement upgrades the database directory name encoding?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The statement ‘ALTER DATABASE’ changes database attributes or upgrades the database directory name encoding. It requires the ‘ALTER’ privilege for the database to be given.
- The statement that alters an existing event to have the given definition is _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The statement ‘ALTER EVENT’ alters an existing event to have the given definition. The ‘RENAME TO’ clause renames the event. The other clauses are described in the entry for ‘CREATE EVENT’.
- What sets up an association between one or more MyISAM tables and the named key cache?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
‘CACHE INDEX’ sets up an association between one or more MyISAM tables and the named key cache which must already exist. The INDEX privilege is needed for each table named in the statement.
- Which statement can produce the same output as ‘SHOW COLUMNS’?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The ‘DESCRIBE’ statement with a table name or view name produces the same kind of output as the ‘SHOW COLUMNS’ statement. The ‘SHOW’ entry can be referred to for further information.