|
〇〇 发表于 2014-2-23 22:02 ![]()
SQL>Select count(*) from tx, ty where tx.id = ty.id and tx.name ='Hello';
EXPR1 |
改为*还是不快
SQL>Select count(*) from tx, ty where tx.id<=1000 and ty.id<=1000 and tx.id <> t
y.id and tx.name ='Hello';
EXPR1 |
------------------------------------------------------------------------------
999000 |
Total 1 records.
Use time:343 ms.
SQL>create table c as Select tx.id,ty.id b,tx.name,ty.name c from tx, ty where t
x.id<=1000 and ty.id<=1000 and tx.id <> ty.id and tx.name ='Hello';
Execute successful.
Use time:26688 ms.
SQL> |
|