Re: FW: Re: Part 1 of several - Converting a varchar to an interval - Mailing list pgsql-sql

From Shawn
Subject Re: FW: Re: Part 1 of several - Converting a varchar to an interval
Date
Msg-id 200803262341.38648.postgres@xmtservices.net
Whole thread Raw
In response to Re: FW: Re: Part 1 of several - Converting a varchar to an interval  ("Rodrigo E. De León Plicet" <rdeleonp@gmail.com>)
Responses Dropping Functions
List pgsql-sql
On Wednesday 26 March 2008 23:12:07 Rodrigo E. De León Plicet wrote:
> Use dollar quoting, e.g.:
>
> create or replace function dur_interval_msec(int) returns interval
> as
> $$
> select ($1 * interval '1 msec');
> $$
> language sql
> immutable
> returns null on null input;

Perfect! Great!  Thank you!

There are so many things about SQL I don't know....

Shawn


pgsql-sql by date:

Previous
From: "Rodrigo E. De León Plicet"
Date:
Subject: Re: FW: Re: Part 1 of several - Converting a varchar to an interval
Next
From: Shawn
Date:
Subject: Dropping Functions