SQL Language (MOSC)

MOSC Banner

To LIKE or not to LIKE

edited Jul 27, 2013 4:16AM in SQL Language (MOSC) 4 commentsAnswered
Which where clause is more efficient and returns faster;
SELECT COLUMNS FROM TABLE
 WHERE SUBSTR(MYTEXT, 1,2) = 'XX'

or

WHERE MYTEXT LIKE 'XX%'

Thanks,
Max

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center