LIKE vs RTRIM
240948Nov 9 2006 — edited Nov 9 2006One of our tables has a telephone number field that is a varchar2(15). Our queries use LIKE '1234567890%' to compare against it. Is it cheaper to say RTRIM(field) = '1234567890'? Of course that assumes that the rest of the field is whitespace if not null. Or what about a SUBSTR comparison?
Message was edited by:
dtseiler