Re: Function Parameters - need help !!!

From: "V i s h a l Kashyap (at) [Sai Hertz And Control Systems]" <sank89(at)sancharnet(dot)in>
To: "Pradeepkumar, Pyatalo (IE10)" <Pradeepkumar(dot)Pyatalo(at)honeywell(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Function Parameters - need help !!!
Date: 2004-06-21 09:42:17
Message-ID: 40D6AD79.4050701@sancharnet.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Dear Pradeep ,

>CREATE PROC PP_ReadPointByValue
>@SessionID int = NULL, --these r default parameters
>
>
SessionID INT := NULL;

>@SPSID int = 1,--default value
>
>
SPSID int := 1 ;

>@ParameterName nvarchar (50) = NULL, -- if NULL read all parameters
>
>
ParameterName varchar(50) := NULL ;

>@NumValue real = NULL,
>@StrValue nvarchar (255) = NULL,
>
>
same as ParameterName varchar(50) := NULL ;

>@ParameterID int = NULL
>
>
ParameterID int := NULL;

Kindly note :
1. This all is for plpgsql procedure
2. All the variable in upcase would be used as lower case i.e
SessionID would be sessionid untll it is not as "SessionID"
3. If a value is not intiliazed it is defaulted to NULL.

--
Best Regards,
Vishal Kashyap
Director / Lead Software Developer,
Sai Hertz And Control Systems Pvt Ltd,
http://saihertz.rediffblogs.com [Comming Soon http://www.saihertz.com]
Yahoo IM: coeb_college[ a t ]yahoo.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gary Stainburn 2004-06-21 10:10:39 subselect prob in view
Previous Message sad 2004-06-21 08:48:51 feature request