-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyear.html
More file actions
25 lines (20 loc) · 940 Bytes
/
year.html
File metadata and controls
25 lines (20 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!-- SECCIÓN YEAR DATE FUNCTION -->
<div id="year-section">
<div id="adsense-container" style="width: 350px; position: absolute; left: 0px;"></div>
<div class="inner-modal">
<div class="inner" style="padding: 0px;">
<h1>SQL YEAR() Function</h1>
<p>The <strong>YEAR()</strong> function returns the year part for a given date (a number from 1000 to 9999).
</p>
<h2>Syntax</h2>
<pre><code class="language-sql">YEAR(date)</code></pre>
<h2>Parameter Values</h2>
<ul>
<li><strong>date</strong>: Required. The date to extract the year from.</li>
</ul>
<h2>YEAR() Example</h2>
<p>The following SQL statement shows the current year we're in:</p>
<pre><code class="language-sql">SELECT YEAR(CURRENT_TIMESTAMP);</code></pre>
</div>
</div>
</div>