473,320 Members | 1,883 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,320 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 1219

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 |...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.