Re: Stored Procedures

Поиск
Список
Период
Сортировка
От bugbug@shaw.ca
Тема Re: Stored Procedures
Дата
Msg-id 147b7f147a04.147a04147b7f@shaw.ca
обсуждение исходный текст
Ответ на Stored Procedures  (bugbug@shaw.ca)
Ответы Re: Stored Procedures  ("paul butler" <paul@entropia.co.uk>)
Re: Stored Procedures  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-novice
Porting my simple stored procedures to functions seems a little too daunting for me. There doesnt seem to be much
directtranslation. Stuff about having to supply a return value...I want to return records like a simple select
query...ori just want to insert a row into my table with a dozen parameters...I dont want to return anything.  

Dennis


----- Original Message -----
From: Steve Crawford <scrawford@pinpointresearch.com>
Date: Thursday, April 10, 2003 4:54 pm
Subject: Re: [NOVICE] Stored Procedures

> search for "functions" and also check out "triggers" and "rules".
>
> Cheers,
> Steve
>
>
> On Thursday 10 April 2003 3:38 pm, bugbug@shaw.ca wrote:
> > Hi Im new to postgre...and Im trying to make the leap from ms
> sql(was kinda
> > new there too! )
> >
> > How do I implement ms sql style stored procedures in postgre ? I
> have ms
> > sql stored procedures like the following to insert data into a
> db that is
> > called from a web form:
> >
> > CREATE PROCEDURE pr_Wellogs_Insert
> >  @iWELL_NUM int = NULL,
> >  @sOWNER nvarchar(60) = NULL,
> >  @siWELL_LOT smallint = NULL,
> >  @stFrom smallint = NULL,
> >  @stTO smallint = NULL
> >
> > AS
> >
> > INSERT WELLOGS
> > (
> >  [WELL_NUM],
> >  [OWNER],
> >  [WELL_LOT]
> > )
> > VALUES
> > (
> >  @iWELL_NUM,
> >  @sOWNER,
> >  @siWELL_LOT
> >
> > if (@stFrom <> ' ')
> > begin insert stratigraphy3
> > (
> >  [well_num],
> >  [from],
> >  [to]
> > )
> > values
> > (
> >  @iWELL_NUM,
> >  @stFrom,
> >  @stTO
> > )
> > end
> > return
> >
> > ------
> > In pgadmin I cant even find anything called stored procedures.
> Also...how> do I implement @@identity in postgre ?
> >
> > Thanks!
> > Dennis
> >
> >
> > ---------------------------(end of broadcast)--------------------
> -------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
>
>
> ---------------------------(end of broadcast)----------------------
> -----
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>


В списке pgsql-novice по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Borland dbExpress in Kylix 3 (Delphi for Linux)
Следующее
От: "paul butler"
Дата:
Сообщение: Re: Stored Procedures