<cfqueryparam and passing a value with "&"
I'm trying to pull values out of an Oracle database where one of the columns has a value of "KA&S".
Using SQL Plus, Toad or whatever, you have to code the statement like this:
select *
from department where deptid = 'KA'||'&'||'S'
The statement below will return 0 records with the value of KA&S.
select *
from department where deptid = <cfqueryparam value="KA&S" cfsqltype="cf_sql_varchar" maxlength="10">
Anyone have any idea on how to format the "KA&S" to where the <cfqueryparam> tag will pass the value as 'KA'||'&'||'S' so that Oracle can execute the SQL statement correctly?
