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

6.4. 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