在MarkLogic的查询管理器中使用SQL [英] Using SQL in Query Manager in MarkLogic

查看:88
本文介绍了在MarkLogic的查询管理器中使用SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ML8中插入少量XML记录后,我能够通过查询控制台使用XQuery对其进行查询.

After inserting few XML records in ML8, I was able to query them using XQuery through Query Console..

可以说存在以下XML:

Lets say following XML's are there:

说一个XML包含如下数据:

Say one XML contains data like:

    <?xml version="1.0" encoding="UTF-8"?>
     <Providers>
      <Provider>
       <ProviderId>1111</ProviderId>
       <Name>John Doe</Name>
       <Age>40</Age>
       <Country>MN</Country>
      </Provider>
      <Provider>
       <ProviderId>2222</ProviderId>
       <Name>Jane Doe</Name>
       <Age>42</Age>
       <Country>MS</Country>
      </Provider>
     </Providers>

在查询管理器中有一个使用SQL的选项,可以在这里用于运行查询或需要一些配置,以便可以直接使用SQL.如果是,那么任何示例都将非常有帮助.

There is an option to use SQL in query manager, can that be used here to run queries or some configurations are needed so that SQL can be used directly. If yes, any example will be very helpful.

推荐答案

还应注意,该模型为one-row = one-document,因此您可能需要 revamp 如何加载XML在这里.

It should also be noted that the model is, one-row = one-document, so you may need to revamp how you are loading your XML here.

这篇关于在MarkLogic的查询管理器中使用SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆