1
0
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:
Bruce Momjian 2005-12-21 23:23:09 +00:00
parent 2469b99665
commit 14e9a17f0a

View File

@ -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>