op:col( $colName as string ) as map:map
Identifies a column where the column name is unique and a qualifier on the column name isn't necessary (and might not exist).
In positions where only a column name can appear, the unqualified column name can also be provided as a string. Qualified column names cannot be provided as a string.
The returned value from this function can be modified by any of the functions described in Expression Functions For Processing Column Values in the Application Developer's Guide
Parameters | |
---|---|
$colName | The name of the column. |
(: Rows with a EmployeeID greater than 3 :) import module namespace op="http://marklogic.com/optic" at "/MarkLogic/optic.xqy"; let $employees := op:from-view("main", "employees") return $employees => op:where(op:gt(op:col("EmployeeID")),3) => op:result()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.