Create index for the keys, like A.c, B.c A.d B.d ? Best regrads, Simon
----- Original Message ----- From: "Dan Liu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 03, 2002 11:21 PM Subject: left join > Hi everyone, > I ran a query which is: > select A.a as a,B.b as b from A left join B on A.c=B.c and A.d=B.d order by A.c,A.d; > Both table A and Table B have about 3000 records.And there are about 3000 records in the result.But it takes 3 minutes and 50 seconds to run the query. > Does anybody know how to make it faster? > > Dan > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php