Click to See Complete Forum and Search --> : Problem executing MySQL delete statement


usamaalam
May 21st, 2009, 10:27 AM
Hello everybody,

When I run the following statement, it returns 3660 rows.

select * from symbols where code = 'AAHSY00';

But when I run the following statement, it doesn't do anything and goes in a never ending loop.

delete from symbols where code = 'AAHSY00';

Any idea on how to fix this?

Thanks.

PeejAvery
May 21st, 2009, 12:31 PM
There's nothing wrong with the query strings. Have you tried to add a LIMIT to it just to test it out?

Shuja Ali
May 21st, 2009, 03:41 PM
Nothing wrong with the query. Might be that the table is locked by some other process.