return the column names as array, in the orders of the column in the database
queryColumnArray(query)
returns array
query.columnArray()
Name | Type | Required | Default | Description |
---|---|---|---|---|
query | query | Yes |
news = queryNew("id,title",
"integer,varchar", [{
"id": 1,
"title": "Dewey defeats Truman"
}, {
"id": 2,
"title": "Man walks on Moon"
}]
);
dump(queryColumnArray(news));