Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/68d138449a32eab68ca756d427cc3754 to your computer and use it in GitHub Desktop.
Save trycf/68d138449a32eab68ca756d427cc3754 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfset testQ = queryNew('test', 'CF_SQL_VARCHAR')>
<cfset queryAddRow(testQ)>
<cfset testQ['test'][1] = '2571'>
<cfset queryAddRow(testQ)>
<cfset testQ['test'][2] = '02571'>
<cfset queryAddRow(testQ)>
<cfset testQ['test'][3] = '1356'>
<cfset queryAddRow(testQ)>
<cfset testQ['test'][4] = '1659'>
<cfdump var="#testQ#" >
<cfquery dbtype="query" name="res">
SELECT * from testQ
where test = '2571'
</cfquery>
<cfdump var="#res#">
<cfquery dbtype="query" name="res">
SELECT * from testQ
where test = '02571'
</cfquery>
<cfdump var="#res#">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment