MarkLogic 10 Product Documentation
op:schema-col

op:schema-col(
   $schemaName as string?,
   $viewName as string?,
   $colName as string
) as map:map

Summary

Unambiguously identifies a column with the schema name, view name, and column name. Useful only for columns provided by a view.

Parameters
$schemaName The name of the schema.
$viewName The name of the view.
$colName The name of the column.

Example

xquery version "1.0-ml";

import module namespace op="http://marklogic.com/optic"
     at "/MarkLogic/optic.xqy";

op:from-view("main", "employees")
	   => op:order-by(op:schema-col('main', 'employees', 'EmployeeID'))
	   => op:result()
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy