Skip to content

Instantly share code, notes, and snippets.

@abramadams
Created January 23, 2014 07:52
Show Gist options
  • Select an option

  • Save abramadams/8574621 to your computer and use it in GitHub Desktop.

Select an option

Save abramadams/8574621 to your computer and use it in GitHub Desktop.
<cfscript>
/* Put this in the Setup Tab */
myTable = queryNew("fruit,color","Integer,Varchar",[ ["apples","green"], ["banannas","yellow"], ["grapes","purple"] ]);
/****************************/
/* Put this in the Default Tab */
writeDump(myTable);
local.svc = new query(
sql = "SELECT * FROM myTable",
dbtype = "query",
myTable = myTable
);
local.obj = local.svc.execute();
writeDump(local.obj);
writeDump(local.obj.getPrefix());
writeDump(local.obj.getResult());
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment