奇怪的问题
存储过程中有如下一条语句:
1 select count(*) into v_count from test where lotkey=v_lotkey
2 select count(0) into v_count from test where lotkey=v_lotkey
在测试存储过程中第一条语句每次查询都出现了假死情况,查询结果需要二三十秒,把count(*)改成了count(0)后,几毫秒结果就出来了,好奇怪....
我把select count(*) into v_count from test单独拿出来执行,又是正常的几毫秒...