473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Explain syntax


Hi list:

I have the following partial result from an explain select:

| table | type | possible_keys

| key
| key_len | ref
| rows | Extra |
+------------------+--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------+---------+-----------------------------------------------------------------------------------------+------+-----------------------------+
| OrdenServicio | ref |
XIF923OrdenServicio,XIF117OrdenServicio,XIF910Orde nServicio,XIF172OrdenServicio,IDX5979OrdenServicio ,IDX5984OrdenServicio,IDX5985OrdenServicio,IDX0010 OrdenServicio,IDX0111OrdenServicio
| IDX5979OrdenServicio | 4 | const
| 1058 | where used; Using
temporary || Tienda | ref | PRIMARY

|
PRIMARY | 4 | OrdenServicio.idTienda
| 1 |
|
| TipoGarantia | ALL | PRIMARY

| NULL
| NULL | NULL
| 2 | where used |
| Pedido | eq_ref | PRIMARY,IDX6868,XIF134Pedido,XIF135Pedido

| PRIMARY
| 12 |
OrdenServicio.idPedido,OrdenServicio.idCanal,Orden Servicio.idTienda
| 1 | |

..--------------------------

And I would like to remove the "Using temporary" label, and this is my
query:

Select distinct OrdenServicio.folioOrdenServicio, OrdenServicio.idCanal,
OrdenServicio.idTienda, OrdenServicio.idTaller,
OrdenServicio.idCentroServicio, OrdenServicio.idPedido,
OrdenServicio.idProducto, OrdenServicio.fallaCliente,
OrdenServicio.idEntregaControl, OrdenServicio.numSerie,
OrdenServicio.estaComponenteBase, OrdenServicio.observaciones,
OrdenServicio.idStatusOrden, OrdenServicio.idCanalLevantamiento,
OrdenServicio.idTiendaLevantamiento,
OrdenServicio.idCentroServicioLevantamiento,
OrdenServicio.idTallerLevantamiento, OrdenServicio.idTipoGarantia,
OrdenServicio.idLinea, OrdenServicio.esReparacionInterna,
OrdenServicio.otroAccesorio, OrdenServicio.idFalla,
OrdenServicio.fechaLevantamiento, Taller.nombre Taller_nombre, Tienda.nombre
Tienda_nombre, Producto.nombre Producto_nombre, Marca.idMarca, Marca.nombre
Marca_nombre, Pedido.fechaSurtimiento, ProductoComprado.idStatusGarantia,
ProductoComprado.garantiaExtendida, ProductoComprado.numPoliza,
Cliente.idCliente, Cliente.nombre Cliente_nombre,Cliente.apellidoP,
Cliente.apellidoM, TipoGarantia.nombre TipoGarantia_nombre,
CentroServicio.nombre CentroServicio_nombre, StatusGarantia.nombre
StatusGarantia_nombre from OrdenServicio, Tienda, Producto, Marca, Pedido,
Cliente, TipoGarantia, CentroServicio, Taller, ProductoComprado,
StatusGarantia where OrdenServicio.idTipoGarantia =
TipoGarantia.idTipoGarantia and OrdenServicio.idTienda = Tienda.idTienda and
OrdenServicio.idProducto = Producto.idProducto and OrdenServicio.idPedido =
Pedido.idPedido and OrdenServicio.idTienda = Pedido.idTienda and
OrdenServicio.idCanal = Pedido.idCanal and OrdenServicio.idProducto =
ProductoComprado.idProducto and OrdenServicio.idPedido =
ProductoComprado.idPedido and OrdenServicio.idCanal =
ProductoComprado.idCanal and OrdenServicio.idTienda =
ProductoComprado.idTienda and ProductoComprado.idProducto =
Producto.idProducto and Producto.idMarca = Marca.idMarca and
ProductoComprado.idStatusGarantia = StatusGarantia.idStatusGarantia and
Cliente.idCliente = Pedido.idCliente and Cliente.idTienda = Pedido.idTienda
and Cliente.idCanal = Pedido.idCanal and OrdenServicio.idTaller =
Taller.idTaller and OrdenServicio.idCentroServicio =
CentroServicio.idCentroServicio and (OrdenServicio.idStatusOrden = 13) and
OrdenServicio.idLinea = 2 group by OrdenServicio.folioOrdenServicio limit
0,10;

Any suggestions to remove the " Using temporary" label in the explain
results.

Thnx in advanced

Best Regards.

Mikel

__________________________________________________ _______________
Únete al mayor servicio mundial de correo electrónico:
http://www.hotmail.com
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/my***********...ie.nctu.edu.tw

Jul 19 '05 #1
0 1391

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Miguel Perez | last post by:
Hi list: I have the following partial result from an explain select: | table | type | possible_keys | key | key_len | ref | rows | Extra |...
3
by: Ranyart Olias | last post by:
Can anyone explain why the <root@hiddenworld.net> portion of this html doesn't render in a browser, but the <20031010152346.GA15353@server.hiddenworld.net> portion does? Here is the html...
5
by: juglesh | last post by:
"$string = isset($xyz) ? $xyz : "something else";" Hello, someone gave code like this in another thread. I understand (by inference) what it does, but have not found any documentation on this...
14
by: Ina Schmitz | last post by:
Hello all, I don't succeed in displaying the explain plan. I use IBM DB2 Universal Database 8.2. I tried to do the example given in the online help for "Visual Explain". The tables...
6
by: Affan Syed | last post by:
I am not able to figure out exactly what this macro is doing. Can one of the gurus around here decipher this? #define sei() __asm__ __volatile__ ("sei" ::) PS: It is from the avr-libc...
9
by: Abhishek | last post by:
Yet another option is to use pointers to arrays: int (*array4) = malloc(nrows * sizeof(*array4)); or even int (*array5) = malloc(sizeof(*array5)); Please explain the declaration of the...
118
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely...
40
by: dev_cool | last post by:
hello everybody, i'm a new member of this group, this is my first ever post. i've found a c program that prints prime numbers through an infinite loop. But I really don't understand the code....
7
by: RobG | last post by:
Can someone explain to me why Firefox barfs on background and border in the following CSS and doesn't display the site the same as IE: #nav, #nav ul { background: <iw_value...
12
by: webinfinite | last post by:
#define D(y...) (const int ) {y} My understand is that D is taking in a various length parameter y which is an array of const int. Am I right? Thanks.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.