Skip to content

Commit 6629ea7

Browse files
committed
Deployed 4a1a4d8 to v2 with MkDocs 1.6.1 and mike 1.1.2
1 parent 94945a3 commit 6629ea7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

v2/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

v2/user_manual/dataset_description/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4298,6 +4298,7 @@ <h2 id="4-sql">4 SQL 语句动态传参设置<a class="headerlink" href="#4-sql"
42984298
<p><img alt="更新1" src="../../newimg/1.20 查询组件绑定参数的方式优化.png" width="900px" /></p>
42994299
<div class="admonition abstract">
43004300
<p><strong>SQL 数据集带参数传递,根据过滤组件的不同,SQL 语法用法上有差异。</strong></p>
4301+
<p>【 2.10.9 及之前版本用法 】</p>
43014302
<p>情况一:过滤组件为单选时,要用 = :
43024303
<div class="highlight"><pre><span></span><code>SELECT ORDER_ID, ORDER_DATE, PROJ_ID, ORDER_EMP FROM ORDERS WHERE ORDER_EMP = &#39;${USER_NAME}&#39;
43034304
</code></pre></div>
@@ -4312,6 +4313,13 @@ <h2 id="4-sql">4 SQL 语句动态传参设置<a class="headerlink" href="#4-sql"
43124313

43134314
SELECT * FROM SALES WHERE 记录时间 &gt; &#39;${BEGINTIME}&#39; AND 记录时间 &lt; &#39;${ENDTIME}&#39;
43144315
</code></pre></div></p>
4316+
<p>【 2.10.10 及及之后版本变量使用方法 】</p>
4317+
<p>兼容之前版本用法的同时,如果存在无法解析数据库自有语法问题,可以使用以下格式修改:
4318+
<div class="highlight"><pre><span></span><code>select * from table where name = &#39;${p}&#39;
4319+
</code></pre></div>
4320+
改为:
4321+
<div class="highlight"><pre><span></span><code>select * from table where $DE_PARAM{name = &#39;$[p]&#39;}
4322+
</code></pre></div></p>
43154323
</div>
43164324
<div class="admonition abstract">
43174325
<p>时间范围传参使用两个时查询条件间,分别绑定【开始时间】和【结束时间】参数,设置展示类型为时间。</p>

0 commit comments

Comments
 (0)