similar vs like

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

similar vs like

Postby js2002 » Fri Sep 17, 2010 9:43 am

lookup_actions_r.action SIMILAR TO '(F|XF)%')

where´s the difference to the LIKE Operator? (in pt3)

lookup_actions_r.action LIKE 'F|XF%' is the same result right?
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: similar vs like

Postby kraada » Fri Sep 17, 2010 10:15 am

You can't use | in LIKE, only in SIMILAR. SIMILAR allows you to use more complex expressions, though the results take slightly longer. See here for more details.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: similar vs like

Postby js2002 » Fri Sep 17, 2010 11:16 am

I remember sry 4 timewaste
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests