• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

6. Complex Datatypes > 6.4. Query Objects

Query Objects

Query objects are special ColdFusion data structures that hold record sets. Query objects are similar in structure to two-dimensional arrays and are made up of rows and columns (like a spreadsheet). There are three ways to create a query object:

  • Using the cfquery or cfstoredproc tag to retrieve a record set from a data source. We haven’t covered the cfstoredproc tag yet; we’ll get to it in Chapter 11. For now, just be aware that the tag can return a record set just like the cfquery tag.

  • Certain CFML tags such as cfftp and cfhttp return information stored in a query object.

  • Query objects can be manually created using QueryNew( ) and other associated query manipulation functions.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint