Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

How does INDEX work with MYSQL?

How does INDEX work with MYSQL?

Suppose I got 2 tables like this

//customerTable
id auto_increment,
username char(30),
password char(40),
phone int(10)


//profileTable
id auto_increment,
username char(30),
description text


And I created an INDEX on username on both tables, like this

create index username on `customerTable` ( username, password )
create index username on `profileTable` ( username )

Then I run this query:

Query1:
select * from `customerTable` where username='abc' limit...

How does INDEX work with MYSQL?

from Databases https://ift.tt/2pqNjVA
via IFTTT

Post a Comment

0 Comments