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

Name

QueryNew

Synopsis

                    QueryNew(columnlist)

Creates an empty ColdFusion query object with column names as specified by columnlist. columnlist can be a comma-delimited list of column names or a blank string ("") so you can use the QueryAddColumn( ) function to populate the rows with the contents of a one-dimensional array. The following example creates a query called Products with four column names:

<cfset Products = QueryNew("ProductName, Color, Price, Qty")>
<cfdump var="#Products#">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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