dli_sqlreference_20250305

Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
This commit is contained in:
2025-03-25 09:06:21 +00:00
committed by zuul
parent ae6113b5ff
commit be9eabe464
382 changed files with 26700 additions and 3987 deletions

View File

@ -40,8 +40,8 @@
<div class="section" id="dli_spark_printf__en-us_topic_0000001647939910_section210162513312"><h4 class="sectiontitle">Return Values</h4><p id="dli_spark_printf__en-us_topic_0000001647939910_p13231453153710">The return value is of the STRING type.</p>
<p id="dli_spark_printf__en-us_topic_0000001647939910_p5231253193719">The value is returned after the parameters that filled in <strong id="dli_spark_printf__en-us_topic_0000001647939910_b31000595395">Obj</strong> are specified for <strong id="dli_spark_printf__en-us_topic_0000001647939910_b11334994409">format</strong>.</p>
</div>
<div class="section" id="dli_spark_printf__en-us_topic_0000001647939910_section13277192233920"><h4 class="sectiontitle">Example Code</h4><p id="dli_spark_printf__en-us_topic_0000001647939910_p187771530172919">The string <strong id="dli_spark_printf__en-us_topic_0000001647939910_b197216712917">name: Zhang San, age: 20, gender: female, place of origin: city 1</strong> is returned.</p>
<pre class="screen" id="dli_spark_printf__en-us_topic_0000001647939910_screen5442105872915">SELECT printf('Name: %s, Age: %d, Gender: %s, Place of origin: %s', "Zhang San", 20, "Female", "City 1");</pre>
<div class="section" id="dli_spark_printf__en-us_topic_0000001647939910_section13277192233920"><h4 class="sectiontitle">Example Code</h4><p id="dli_spark_printf__en-us_topic_0000001647939910_p187771530172919">The string <strong id="dli_spark_printf__en-us_topic_0000001647939910_b197216712917">name: user1, age: 20, gender: female, place of origin: city 1</strong> is returned.</p>
<pre class="screen" id="dli_spark_printf__en-us_topic_0000001647939910_screen5442105872915">SELECT printf('Name: %s, Age: %d, Gender: %s, Place of origin: %s', "user1", 20, "Female", "City 1");</pre>
</div>
</div>
<div>