not sure why it does not work - i have not used or tested
having to
wildcard characters in same value.
i am pretty sure separating your WHERE clause into 2 (or 3)
separate
ones with OR operators will do the trick, though:
SELECT DISTINCT collegeName
FROM college
WHERE
collegeName = <cfqueryparam
value="#arguments.suggestvalue#"
cfsqltype="cf_sql_varchar">
OR collegeName LIKE <cfqueryparam
value="#arguments.suggestvalue#%"
cfsqltype="cf_sql_varchar">
OR collegeName LIKE <cfqueryparam
value="%#arguments.suggestvalue#"
cfsqltype="cf_sql_varchar">
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/