optimize a sql statement

2005-07-16 Thread
Follow is my sql statement: - SELECT SUM(ol_qty) sumolqty, ol_i_id FROM orders, order_line WHERE orders.o_id = order_line.ol_o_id AND orders.o_id > (SELECT MAX(o_id)-1 FROM orders) AND NOT (order_line.ol_

optimize a sql statement

2005-07-16 Thread
Follow is my sql statement: - SELECT SUM(ol_qty) sumolqty, ol_i_id FROM orders, order_line WHERE orders.o_id = order_line.ol_o_id AND orders.o_id > (SELECT MAX(o_id)-1 FROM orders) AND NOT (order_line.ol_i_

RE: optimize a sql statement

2005-07-17 Thread
ing temporary; Using filesort' 1, 'SIMPLE', 'order_line', 'ref', 'PRIMARY,order_line_ol_o_id', 'PRIMARY', '4', 'tpcw.orders.o_id', 1, '' - Can it be optimize

about: Select tables optimized away

2005-07-18 Thread
When I explain "SELECT MAX(o_id)-1 FROM orders",it tell me "Select tables optimized away".What is it meaning?It show me good or bad? thanks! _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn -- MySQL General Mai

Re: optimize a sql statement

2005-07-18 Thread
NO effect :-( From: pow <[EMAIL PROTECTED]> To: 王 旭 <[EMAIL PROTECTED]> Subject: Re: optimize a sql statement Date: Mon, 18 Jul 2005 11:51:23 +0800 Do u have composite index on order_line.ol_o_id AND order_line.ol_i_id? You could try that... 王 旭 wrote: > Now,I make this sql st

optimize a order by statement

2005-07-18 Thread
Follow is the sql statement: explain SELECT ol_i_id FROM orders, order_line WHERE orders.o_id = order_line.ol_o_id and o_id>0 ORDER BY SUM(ol_qty)DESC Follow is the explain output:

Re: optimize a sql statement

2005-07-21 Thread
In the mail,Pow give me a way.He advise me to build a index on orders.o_id and orders.o_c_id.I understanding his mean is table orders join table order_line using the index.Because orders.o_c_id be limited in the where statemetn,so the index should be filter date before Join operation.In this

Re: optimize a sql statement

2005-07-21 Thread
rary; Using filesort' 1, 'PRIMARY', 'order_line', 'ref', 'PRIMARY,order_line_ol_i_id,order_line_ol_o_id,order_line_test', 'order_line_ol_o_id', '4', 'tpcw.orders.o_id', 1, 'Using where' 2, 'DEPENDENT SUBQ

Re: optimize a sql statement

2005-07-22 Thread
x27;, 1, 'Using where; Using index' 2, 'DEPENDENT SUBQUERY', 'order_line', 'ref', 'PRIMARY,order_line_ol_i_id,order_line_ol_o_id,order_line_test', 'order_line_ol_o_id', '4', 'tpcw.orders.o_id', 1, 'Using where' 3, '

a question in SERIALIZABLE transaction isolation level

2005-08-11 Thread
In the transaction isolation level,Database send some "duplicate entry" message to me. Why? _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn -- MySQL General Mailing List For list archives: http://lists.mysql.com/my

About database criterion

2005-09-13 Thread
Hello,every one. Is there a current criterion about database function to evaluating a database? _ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysq

Re: About database criterion

2005-09-14 Thread
thanks gleb! I know tpc constitute a performance standard for database.For example,tpc-c,tpc-w. Now I want to know whether there are a standard for database system function.For example,maybe some describe in the standard : a good database must have view manage,index manage,trigger manage et

a question about system page.

2005-10-14 Thread
I learn configuring the mysql server in the manul 5.3.1.I notice there is a parameter "--large pages".Please tell my how do i alter linux system memory pages . _ 免费下载 MSN Explorer: http://explorer.msn.com/lccn -- MySQL Gener

difference between max_connection and max_user_connection

2005-10-18 Thread
Are there any difference between max_connection and max_user_connection? thanks! _ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

I can't find any variables used "show variables"

2005-10-18 Thread
My kernel version is 5.0.12. When i learn the manual,i didn't find any variables in the manul when i used "show variables".Weither there is a lack of manual updating? thanks _ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/

the difference between server option and Server System Variables

2005-10-18 Thread
In mysql,server system variables's function like server option function. How do i choosing between the server opiton and the system variables. thanks! _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn -- MySQL General

Re: the difference between server option and Server System Variables

2005-10-18 Thread
I want to know when i need using the server option and when i need the server system variables.In other words,can i using server system variables replace all server options. thanks. From: Peter Brawley <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: 王 旭 <[EMAIL PROTECTED]&g

Re: I can't find any variables used "show variables"

2005-10-18 Thread
yes. I look reference manual of mysql5.0.12. For example,there a variables named "bdb_..",but i can't find these variables used "show variables". From: Paul DuBois <[EMAIL PROTECTED]> To: 猝 嗥 <[EMAIL PROTECTED]>,mysql@lists.mysql.com Subject: Re: I can't find any variables used "show vari

Re: CONCAT doesn't work with NULL?

2008-05-14 Thread
i execute follow sql. select concat_ws('','d','\n','c'); the result is : ++ | concat_ws('','d','\n','c') | ++ | d c| ++ There are no result as you said. - Original Message - F

Re: error while starting replication for the first time

2008-05-25 Thread
Replication is a complicated process.I can't see what you do and what happened for your computer. From you description,i think you maybe save some old file in your entironment and some configer parmater point to it. So,the best way is sending you actions to me step by step and we will analyse wh

Re: what's better query?

2008-06-03 Thread
The two querys's logic are different.Which is you need? - Original Message - From: "afan pasalic" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 04, 2008 5:50 AM Subject: what's better query? > Hi, > > I have two tables, "people" and "membership". Both have email column > (different co