MySQL Table Operations
- In the CREATE TABLE statement, the engine name specified is case sensitive.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Suppose a table is created using the following statement: ‘CREATE TABLE my_tbl (…..) ENGINE = InnoDB;’. The engine name ‘InnoDB’ used is always case insensitive.
- What is the name of the format file for a table named my_tbl?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Every time a table is created in MySQL, it creates a disk file containing the format of the table. It has two components, namely, base name (here, ‘my_tbl’) and an extension (here, ‘frm’).
- The default storage engine used is ____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
MySQL comes with multiple storage engines. The default storage engine used is ‘MyISAM’. ‘EXAMPLE’ is the stub storage engine, NDB is the storage engine for MySQL Cluster.
- Which storage engine is not available in MySQL 5.0?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
All of the storage engines given are available in MySQL versions 5.0 and above, except ‘Falcon’. MySQL supports many storage engines or table handlers that have a specific set of properties.
- Which statement is used to remove indexes on tables?
-
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.