this query also crushes the sql server with message:

mysqld-nt.exe has genrated errors and will be closed by Windows.
You will need to restart the program.
An error log is being created.

select distinct a.* from gnrlasoc a, tasks b where a.row_key_1 = b.prim_key;

The number of records this query would produce is tiny.

Eugene

-----Original Message-----
From: Arthur Fuller [mailto:afuller@;etsys.com]
Sent: Monday, November 11, 2002 7:54 AM
To: Eugene Bendersky
Cc: [EMAIL PROTECTED]
Subject: RE: query crushes server


A Cartesian product will generate the number of rows in Table 1 times the
number of rows in Table 2. For example if T1 has 1,000 rows and T2 has
10,000 rows your result set will contain 10,000,000 rows.

Arthur

-----------------------------
Eugene Bendersky wrote:

>May be this was reported already.
>
>I have windows 2000 using mysql version 4.0.3-beta-nt
>
>When I ran a query like
>
> select  distinct a.* from tasks a, gnrlasoc b;
>
>mysqld-nt.exe crashes.
>I know this query makes no sense but it should not crush server
>
>Eugene Bendersky
>
>---------------------------------------------------------------------
>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



---------------------------------------------------------------------
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

Reply via email to