Parameters
| ARRAY | Required. The array you want to convert into a query. Must be a "square" two-dimensional array. |
| QUERY | Required. The name for the new query. You would then be able to use this name for the QUERY attribute of a CFOUTPUT tag, for example. |
| COLUMNLIST | Required. The column names to be used to constuct the new query, as a comma-separated list. |
Example
The following code creates a "test" array, then converts it to a query.
This example then uses the CFX_ShowQuery tag to display the contents of the
new query. You don't need the CFX_ShowQuery tag to work with the CF_ArrayToQuery tag--
it's just here to illustrate the point.
| COLA | COLB | COLC |
|---|---|---|
| A1 | B1 | C1 |
| A2 | B2 | C2 |
| A3 | B3 | C3 |
| A4 | B4 | C4 |