Link to home
Start Free TrialLog in
Avatar of jmcglothlin
jmcglothlin

asked on

String Position Function

Firebird apparently does not have a function to find one string inside another. How do I implement this? I have the Free_UDF library (FBUDF.dll) loaded into Firebird.

Example: How would you implement this type of SQL statement:
select email, pos('@',email) PE from table
ASKER CERTIFIED SOLUTION
Avatar of gskoczylas
gskoczylas
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nick Upson
if you just want to know if one string contains another you can use "if (str1 CONTAINS(str2)) then" in a stored procedure

Avatar of jmcglothlin
jmcglothlin

ASKER

I will use the AdHoc UDF library - thanks much