Created
January 23, 2014 07:52
-
-
Save abramadams/8574621 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <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