dognobbler
Programmer
I am new to using indexes and need a little help. I want to create a index to help the following statement run faster, can anyone suggest which would be the best index to create
select * from profile, album, movie, book, contact
where profile.album = album.albumid
and profile.movie = movie.movieid
and profile.book = book.bookid
and profile.username=contact.username
and profile.sex != "male"
and profile.searchsex != "female"
and profile.relationship != "dating"
and photo_validated != "yes";
Also is there a way to see which indexes yo have already created ie. is there a "show indexes" or "desc indexes" statement that will show me all the indexes on a database or table.
Thanks
Andy
select * from profile, album, movie, book, contact
where profile.album = album.albumid
and profile.movie = movie.movieid
and profile.book = book.bookid
and profile.username=contact.username
and profile.sex != "male"
and profile.searchsex != "female"
and profile.relationship != "dating"
and photo_validated != "yes";
Also is there a way to see which indexes yo have already created ie. is there a "show indexes" or "desc indexes" statement that will show me all the indexes on a database or table.
Thanks
Andy