Skip to content

INDEX

CREATE INDEX idx_name
ON Employees(name);

The message indicating that the operation was successful doesn’t have fixed text, but should look something like this:

Query OK, 0 rows affected (0.07 sec)
Records: 0 Duplicates: 0 Warnings: 0

In this example, an index idx_name is created on the name column of the Employees table. Creating an index can improve the efficiency of database operations because it allows the database to find records for specific column values more quickly.