Log In
Joelie
Help
.id
274
.gutitle
jk_docs_functions_querynew
.title
QueryNew
.file
.extension
.name
.user_id
7
.notes
|primary|
.body
Returns a query object with <i>columlist</i> as its set of columns.
<p class="snip">
<var Q = <b>QueryNew(<i>columnlist</i>)</b>>
</p>
.example
<!--- create a query object with "id" and "title" columns --->
<var Q = QueryNew('id,title')>
<!--- add two rows to the query --->
<var QueryAddRow(Q,2)>
<!--- add a "notes" column ---->
<var QueryAddColumn(Q,"notes")>
<!--- output the query --->
<dump var="#Q#">
.required_params
[
{
"param": "columnlist",
"type": "text",
"description": "List of column names for the new query object",
"example": "\"id,title,notes\""
}
]
.optional_params
.see_also
<a href="../Functions/QueryAddColumn">QueryAddColumn</a>
<a href="../Functions/QueryAddRow">QueryAddRow</a>
<a href="../Functions/QuerySetCell">QuerySetCell</a>