pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: Function define question
2+ messages / 2 participants
[nested] [flat]
* Re: Function define question
@ 1970-01-01 00:00 omid omoomi <oomoomi@hotmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: omid omoomi @ 1970-01-01 00:00 UTC (permalink / raw)
To: bchie@opensys.com.hk; pgsql-sql
hi,
It depends on the variable type:
foo=> create function f1( int4) returns int4 as'
foo'> select $1 ;'
foo-> language 'sql';
CREATE
foo=> select f1(4);
f1
--
4
(1 row)
regards
Omid
>From: "Bill" <bchie@opensys.com.hk>
>To: pgsql-sql@postgresql.org
>Subject: [SQL] Function define question
>Date: Sat, 18 Aug 2001 13:23:33 +0800
>
>Hello all,
>
> Is it possible to define a function to pass parameter like this?
>
>function( parameter )
>but not
>function( 'parameter' )
>
>Regards
>Bill
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/users-lounge/docs/faq.html
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
^ permalink raw reply [nested|flat] 2+ messages in thread
* Function define question
@ 2001-08-18 05:23 Bill <bchie@opensys.com.hk>
0 siblings, 0 replies; 2+ messages in thread
From: Bill @ 2001-08-18 05:23 UTC (permalink / raw)
To: pgsql-sql
Hello all,
Is it possible to define a function to pass parameter like this?
function( parameter )
but not
function( 'parameter' )
Regards
Bill
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-08-18 05:23 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1970-01-01 00:00 Re: Function define question omid omoomi <oomoomi@hotmail.com>
2001-08-18 05:23 Function define question Bill <bchie@opensys.com.hk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox