473,473 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1241

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
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...
1
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.