pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: omid omoomi <oomoomi@hotmail.com>
To: bchie@opensys.com.hk
To: pgsql-sql@postgresql.org
Subject: Re: Function define question
Date: Sat, 18 Aug 2001 18:23:50
Message-ID: <F231Y6YHkidcDjoYAPN0000a135@hotmail.com> (raw)

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




view thread (2+ messages)  latest in thread

Message-ID: <F231Y6YHkidcDjoYAPN0000a135@hotmail.com>
Permalink:  ../F231Y6YHkidcDjoYAPN0000a135@hotmail.com/
Also on:    postgresql.org/message-id/F231Y6YHkidcDjoYAPN0000a135@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: oomoomi@hotmail.com, bchie@opensys.com.hk
  Subject: Re: Function define question
  In-Reply-To: <F231Y6YHkidcDjoYAPN0000a135@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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