Skip to content

Instantly share code, notes, and snippets.

Created June 17, 2015 05:48
Show Gist options
  • Save anonymous/af9704a48c5848a50145 to your computer and use it in GitHub Desktop.
Save anonymous/af9704a48c5848a50145 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
myCountry = "China";
peopleInChina = queryExecute(
"SELECT * FROM people WHERE country = :country",
{country: myCountry},
{dbType:"query", maxrows:1}
);
writeDump({
"1: by struct": deSerializeJSON(
serializeJSON( peopleInChina, 'struct' )
),
"2: by row": deSerializeJSON(
serializeJSON( peopleInChina, 'row' )
),
"3: by column": deSerializeJSON(
serializeJSON( peopleInChina, 'column' )
)
});
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment