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/b4b5028ca4b02443696c571d6da60604 to your computer and use it in GitHub Desktop.
Save trycf/b4b5028ca4b02443696c571d6da60604 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfset news = queryNew("id,title,datePublished",
"integer,varchar,Timestamp",
{"id":1,"title":"Dewey defeats Truman", "datePublished":now()})>
<cfquery dbtype="query" name="sub">
SELECT * FROM news
WHERE datePublished <= <cfqueryparam value="#now()#" cfsqltype="timestamp" maxlength="1">
</cfquery>
<cfdump var="#news#">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment