sql语法高亮

This commit is contained in:
fofolee
2019-05-07 10:15:08 +08:00
parent 6cf279e189
commit 2bf87e1e25
67 changed files with 128 additions and 128 deletions

View File

@@ -1,6 +1,6 @@
<div class="m-bg">
<h1>SQL ROUND() 函数</h1>
<h2>ROUND() 函数</h2> <p>ROUND() 函数用于把数值字段舍入为指定的小数位数。</p> <h3>SQL ROUND() 语法</h3> <div class="code notranslate"><pre><div> SELECT ROUND(column_name,decimals) FROM table_name;</div></pre></div> <br/><table class="reference notranslate">
<h2>ROUND() 函数</h2> <p>ROUND() 函数用于把数值字段舍入为指定的小数位数。</p> <h3>SQL ROUND() 语法</h3> <div class="code notranslate"><pre><code class="language-sql"><div> SELECT ROUND(column_name,decimals) 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 ROUND() 实例</h2> <p>下面的 SQL 语句从 "Products" 表中选取产品名称和价格舍入为最接近的整数:。提取前 4 个字符:</p> <div class="example margin-b-10"> <h2 class="example">实例</h2> <pre><div class="example_code notranslate"> SELECT ProductName, ROUND(Price,0) AS RoundedPrice<br/>FROM Products; </div></pre> </div> <br/><div class="text-center padding-10 margin-t-5">
<h2>SQL ROUND() 实例</h2> <p>下面的 SQL 语句从 "Products" 表中选取产品名称和价格舍入为最接近的整数:。提取前 4 个字符:</p> <div class="example margin-b-10"> <h2 class="example">实例</h2> <pre><code class="language-sql"><div class="example_code notranslate"> SELECT ProductName, ROUND(Price,0) AS RoundedPrice<br/>FROM Products; </div></code></pre> </div> <br/><div class="text-center padding-10 margin-t-5">
</div>
</div>