What is indexing in mysql and how do we create indexing in
mysql

Answer Posted / ramesh n

Indexes are created on a per column basis. If you have a
table with the columns: name, age, birthday and employeeID
and want to create an index to speed up how long it takes to
find employeeID values in your queries, then you would need
to create an index for employeeID. When you create this
index, MySQL will build a lookup index where employeeID
specific queries can be run quickly. However, the name, age
and birthday queries would not be any faster.

Indexes are something extra that you can enable on your
MySQL tables to increase performance,cbut they do have some
downsides. When you create a new index MySQL builds a
separate block of information that needs to be updated every
time there are changes made to the table. This means that if
you are constantly updating, inserting and removing entries
in your table this could have a negative impact on performance.

syntax
CREATE TABLE <table name> (
<filed name> <field type>....
)

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is empty () in php?

610


What is fetch array in php?

684


How to convert strings to upper or lower cases?

639


What is ci framework in php?

588


Explain me difference between mysql_connect and mysql_pconnect?

632






How to find the length of a string?

632


What is framework in php?

591


What does mvc stand for and what does each component do?

624


Can I include php in javascript?

697


What are the design patterns in php?

601


What is the difference server side and browser side validation?

577


How to find current date and time?

586


Why use php artisan serve?

582


What is difference between get and post?

619


How to create reusable code in php?

625