mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 23:56:58 +03:00
Add documentation example of using interval multiplication with 'days'.
Backpatch to 8.1.X.
This commit is contained in:
parent
2469b99665
commit
14e9a17f0a
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.291.2.4 2005/12/21 16:02:44 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.291.2.5 2005/12/21 23:23:09 momjian Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -5199,6 +5199,12 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
|
||||
<entry><literal>interval '00:15:00'</literal></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry> <literal>*</literal> </entry>
|
||||
<entry><literal>21 * interval '1 day'</literal></entry>
|
||||
<entry><literal>interval '21 days'</literal></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry> <literal>*</literal> </entry>
|
||||
<entry><literal>double precision '3.5' * interval '1 hour'</literal></entry>
|
||||
|
Loading…
x
Reference in New Issue
Block a user