First of all,my English is very poor,so somewhere may be i white it unCourtesy or unclearlly.I'm sorry.
Two sql,
sql1:
sql2:
Almost the same,The only difference is date .But sql1 is All right,sql2 have a ora-20000 and org-10599 error.
I've no idea of that.Help you see where the problem may be!
PS: if i delete --And contains(B.comp anyname,'aaaa') > 0-- this part,the two sql is all right.
Two sql,
sql1:
Code:
Select count(*) as cnt From position A,companyinfo B Where A.companyid=B.companyid And B.servicetype<>'1' And A.LASTREFRESHDATE>=to_date('2010-05-13','yyyy-mm-dd') And A.CurState='1' And contains(B.companyname,'aaaa') > 0
Code:
Select count(*) as cnt From position A,companyinfo B Where A.companyid=B.companyid And B.servicetype<>'1' And A.LASTREFRESHDATE>=to_date('2010-05-07','yyyy-mm-dd') And A.CurState='1' And contains(B.companyname,'aaaa') > 0
I've no idea of that.Help you see where the problem may be!
PS: if i delete --And contains(B.comp anyname,'aaaa') > 0-- this part,the two sql is all right.
Comment