If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > who can tell me why?why i can't query two table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-23-03, 02:12
feelfly feelfly is offline
Registered User
 
Join Date: Dec 2003
Posts: 18
who can tell me why?why i can't query two table

i have explain my select sql as follows:
explain select * from a, b where a.reporttime = b.reporttime;½á¹ûÈçÏÂ
table type possible_keys key key_len ref rows extra
b all reporttime null null null 170943
a ref reporttime reporttime 8 b.reporttime 303
when i execute" explain select * from a, b where a.reporttime = b.reporttime" my pc will die.
and actually b table has more data than 303 rows.reporttime has been indexed .who can tell me why?
Reply With Quote
  #2 (permalink)  
Old 12-27-03, 03:12
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: who can tell me why?why i can't query two table

Quote:
Originally posted by feelfly
i have explain my select sql as follows:
explain select * from a, b where a.reporttime = b.reporttime;½á¹ûÈçÏÂ
table type possible_keys key key_len ref rows extra
b all reporttime null null null 170943
a ref reporttime reporttime 8 b.reporttime 303
when i execute" explain select * from a, b where a.reporttime = b.reporttime" my pc will die.
and actually b table has more data than 303 rows.reporttime has been indexed .who can tell me why?
No OS, no version of MySQL etc. and my crystal ball is broken
Reply With Quote
  #3 (permalink)  
Old 12-27-03, 04:04
feelfly feelfly is offline
Registered User
 
Join Date: Dec 2003
Posts: 18
win2000+mysql4.016
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On