Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: hypothetical question:select count(*) hung?
David Spaisman wrote:
>
> Someone recently proposed a hypothetical question to me about the following
> situation and I thought it was interesting.
>
> If there is an empty table in a database and a select count(*) is tried
> aganst an empty table.
> The connection hangs and no reply is returned. What could be the cause?
>
> Any infomration on how to resolve such a situation would be greatly
> appreciated.
>
> Thanks.
>
> David Spaisman
If the table once had lots of rows, this could cause it...
Scenario:
solution: truncate table table_name;
HTH --
"Some days you're the pigeon, and some days you're the statue." Received on Wed Jul 21 1999 - 08:44:54 CDT