Created
January 20, 2021 16:49
-
-
Save trycf/b4b5028ca4b02443696c571d6da60604 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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