Re: [ NEED HELP ] - For optimize my select statement
> WHERE calldate BETWEEN "2015-01-20%" AND "2015-02-10%"
Don't use '%' like that. Perhaps you meant:
WHERE calldate BETWEEN "2015-01-20" AND "2015-02-10 23:59:59"
> ON IF(LENGTH(dst)>8, cdr.dst, CONCAT('67',cdr.dst))
LIKE CONCAT('%',un_prefixo2.prefixo,'____')
will be terribly slow. Find a better way to store the data so that you don't have to dissect/CONCAT to do comparisions.
Subject
Written By
Posted
Re: [ NEED HELP ] - For optimize my select statement
May 07, 2015 11:01PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.