![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Hi, I'm having problems where I can clearly see indexes exist in phpMyAdmin, but when I do an EXPLAIN statement they just don't appear. For example one table is not using indexes even when I know a PRIMARY key exists on it. I've refreshed my SQL browser but still it doesnt appear. Is there something obvious to do? Thanks A | |||
|
| Advertisements |
| | #2 | ||
| UKuser wrote: > Hi, > > I'm having problems where I can clearly see indexes exist in > phpMyAdmin, but when I do an EXPLAIN statement they just don't appear. > For example one table is not using indexes even when I know a PRIMARY > key exists on it. > > I've refreshed my SQL browser but still it doesnt appear. Is there > something obvious to do? > > Thanks > > A > you may not be using the index field in your query and that is why explain doesn't show it. | |||
|
| | #3 | ||
| On 29 Jun, 14:58, lark <ham...@sbcdeglobalspam.net> wrote: > UKuser wrote: > > Hi, > > > I'm having problems where I can clearly see indexes exist in > > phpMyAdmin, but when I do an EXPLAIN statement they just don't appear. > > For example one table is not using indexes even when I know a PRIMARY > > key exists on it. > > > I've refreshed my SQL browser but still it doesnt appear. Is there > > something obvious to do? > > > Thanks > > > A > > you may not be using the index field in your query and that is why > explain doesn't show it. Ah - I was using it in JOINS and the SELECT statement but not the WHERE - I figured it must be used in JOINS but didnt get called up. | |||
|
| | #4 | ||
| On 29 Jun, 15:28, UKuser <spiderc...@yahoo.co.uk> wrote: > On 29 Jun, 14:58, lark <ham...@sbcdeglobalspam.net> wrote: > > > > > > > UKuser wrote: > > > Hi, > > > > I'm having problems where I can clearly see indexes exist in > > > phpMyAdmin, but when I do an EXPLAIN statement they just don't appear. > > > For example one table is not using indexes even when I know a PRIMARY > > > key exists on it. > > > > I've refreshed my SQL browser but still it doesnt appear. Is there > > > something obvious to do? > > > > Thanks > > > > A > > > you may not be using the index field in your query and that is why > > explain doesn't show it. > > Ah - I was using it in JOINS and the SELECT statement but not the > WHERE - I figured it must be used in JOINS but didnt get called up.- Hide quoted text - > > - Show quoted text - I certainly might get used in JOINS. It depends on what the optimiser decides is the best thing to doin this particular situation. | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: indexes, showing |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Indexes And Sorting | nk | Database | 1 | 07-01-2007 9:59 PM |
| Using two indexes on the same table | jfgroff@gmail.com | Database | 3 | 07-01-2007 8:28 PM |
| Top words in Mysql Fulltext indexes | bzi999@gmail.com | Database | 0 | 07-01-2007 5:40 PM |
| Indexes on text fields | Rune | Database | 0 | 05-31-2007 7:42 PM |
| Featured Websites | ||||
|