We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,763 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

MySql use Index Visual Basic

I use MySQL database (innodb)
I use Visual Basic 2008
I have a table Employees with two fields EmpNo and Managerno
ALTER TABLE Employees ADD PRIMARY KEY (EmpNo
CREATE INDEX index_Managerno ON Employees (ManagerNo)
How do i now IF Mysql using this index is if i do this:
SELECT * FROM Employees WHERE Managerno = 123451

2
Contributors
1
Reply
1 Day
Discussion Span
8 Months Ago
Last Updated
2
Views
Question
Answered
dre-logics
Junior Poster
115 posts since Aug 2009
Reputation Points: 9
Solved Threads: 0
Skill Endorsements: 0

Look at the EXPLAIN command. It will tell you what steps the MySQL engine would take to execute a given SELECT statement.
MySQL Documentation

Nutster
Junior Poster
128 posts since Oct 2006
Reputation Points: 62
Solved Threads: 19
Skill Endorsements: 3
Question Answered as of 8 Months Ago by Nutster

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0634 seconds using 2.65MB