我不同意 Croatia(Croatia)网友的观点(调整表的顺序).也不同意 yangqingdelphi() 的观点(把小表建在右边),这些将右oracle的优化器来决定. 楼主可以这么做试试看, select b.bookname, a.username from user a , books b where 1=1 and a.userid=b.userid+0 --停用200条记录的表的索引.
我不同意 Croatia(Croatia)网友的观点(调整表的顺序).也不同意 yangqingdelphi() 的观点(把小表建在右边),这些将右oracle的优化器来决定. 楼主可以这么做试试看, select b.bookname, a.username from user a , books b where 1=1 and a.userid=b.userid+0 --停用200条记录的表的索引.
字段userid有没有索引啊.在sqlplus显示出来慢,不代表查出来慢.
楼主可以这么做试试看,
select
b.bookname,
a.username
from
user a ,
books b
where
1=1
and a.userid=b.userid+0 --停用200条记录的表的索引.
楼主可以这么做试试看,
select
b.bookname,
a.username
from
user a ,
books b
where
1=1
and a.userid=b.userid+0 --停用200条记录的表的索引.