mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-17 00:04:34 +08:00
sql语法高亮
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div class="m-bg">
|
||||
<h1>SQL FORMAT() 函数</h1>
|
||||
<h2>FORMAT() 函数</h2> <p>FORMAT() 函数用于对字段的显示进行格式化。</p> <h3>SQL FORMAT() 语法</h3> <div class="code notranslate"><pre><div> SELECT FORMAT(column_name,format) FROM table_name;</div></pre></div> <br/><table class="reference notranslate">
|
||||
<h2>FORMAT() 函数</h2> <p>FORMAT() 函数用于对字段的显示进行格式化。</p> <h3>SQL FORMAT() 语法</h3> <div class="code notranslate"><pre><code class="language-sql"><div> SELECT FORMAT(column_name,format) FROM table_name;</div></code></pre></div> <br/><table class="reference notranslate">
|
||||
<tr>
|
||||
<th align="left" valign="top" width="20%">参数</th> <th align="left" valign="top" width="80%">描述</th> </tr>
|
||||
<tr>
|
||||
@@ -22,6 +22,6 @@
|
||||
<tr>
|
||||
<td>5</td> <td>Chef Anton's Gumbo Mix</td> <td>2</td> <td>2</td> <td>36 boxes</td> <td>25</td> </tr>
|
||||
</table>
|
||||
<h2>SQL FORMAT() 实例</h2> <p>下面的 SQL 语句从 "Products" 表中选取产品名称以及当天(格式化为 YYYY-MM-DD)的价格:</p> <div class="example margin-b-10"> <h2 class="example">实例</h2> <pre><div class="example_code notranslate"> SELECT ProductName, Price, FORMAT(Now(),'YYYY-MM-DD') AS PerDate<br/>FROM Products; </div></pre> </div> <div class="text-center padding-10 margin-t-5">
|
||||
<h2>SQL FORMAT() 实例</h2> <p>下面的 SQL 语句从 "Products" 表中选取产品名称以及当天(格式化为 YYYY-MM-DD)的价格:</p> <div class="example margin-b-10"> <h2 class="example">实例</h2> <pre><code class="language-sql"><div class="example_code notranslate"> SELECT ProductName, Price, FORMAT(Now(),'YYYY-MM-DD') AS PerDate<br/>FROM Products; </div></code></pre> </div> <div class="text-center padding-10 margin-t-5">
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user