Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
cbd28114
Commit
cbd28114
authored
Mar 11, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve extract(day) documentation with interval values.
parent
ea5c4c71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+9
-2
No files found.
doc/src/sgml/func.sgml
View file @
cbd28114
...
@@ -6605,13 +6605,20 @@ SELECT EXTRACT(CENTURY FROM TIMESTAMP '2001-02-16 20:38:40');
...
@@ -6605,13 +6605,20 @@ SELECT EXTRACT(CENTURY FROM TIMESTAMP '2001-02-16 20:38:40');
<term><literal>
day
</literal></term>
<term><literal>
day
</literal></term>
<listitem>
<listitem>
<para>
<para>
The day (of the month) field (1 - 31)
For
<type>
timestamp
</type>
values, the day (of the month) field
(1 - 31) ; for
<type>
interval
</type>
values, the number of days
</para>
</para>
<screen>
<screen>
SELECT EXTRACT(DAY FROM TIMESTAMP '2001-02-16 20:38:40');
SELECT EXTRACT(DAY FROM TIMESTAMP '2001-02-16 20:38:40');
<lineannotation>
Result:
</lineannotation><computeroutput>
16
</computeroutput>
<lineannotation>
Result:
</lineannotation><computeroutput>
16
</computeroutput>
SELECT EXTRACT(DAY FROM INTERVAL '40 days 1 minute');
<lineannotation>
Result:
</lineannotation><computeroutput>
40
</computeroutput>
</screen>
</screen>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -6827,7 +6834,7 @@ SELECT EXTRACT(MINUTE FROM TIMESTAMP '2001-02-16 20:38:40');
...
@@ -6827,7 +6834,7 @@ SELECT EXTRACT(MINUTE FROM TIMESTAMP '2001-02-16 20:38:40');
<listitem>
<listitem>
<para>
<para>
For
<type>
timestamp
</type>
values, the number of the month
For
<type>
timestamp
</type>
values, the number of the month
within the year (1 - 12) ; for
<type>
interval
</type>
values
within the year (1 - 12) ; for
<type>
interval
</type>
values
,
the number of months, modulo 12 (0 - 11)
the number of months, modulo 12 (0 - 11)
</para>
</para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment