From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | gulsumramazanoglu <gulsumramazanoglu(at)gmail(dot)com> |
Cc: | anand086 <anand086(at)gmail(dot)com>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Using bind variable within BEGIN END |
Date: | 2017-06-02 18:57:31 |
Message-ID: | CAKFQuwaiTzfHmkxU06cxxV=g73xD4mSxSvqSfFh9y0DD41sC9g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Friday, June 2, 2017, gulsumramazanoglu <gulsumramazanoglu(at)gmail(dot)com>
wrote:
> David hi, if PostgreSQL doesnt have stored procedures and function can
> only be used by a SQL command, so we cannot make a call to an SQL script
> (of any kind, name it procedure or something) directly from a HLL program..
> do i understand correctly?
>
I don't think so but I cannot figure out what your actual confusion is.
Write a function. Execute a statement that invokes the function. Remain
connected until the function returns. Learn whether it completed
successfully or not and react accordingly. Move on in your HLL (higher
level language?) code.
The term procedure in sql often implies autonomous which client invoked
code cannot presently do (i.e., disconnect the connection after initiating
the code but before it completes).
Your syntax issues are mostly about not having read the right sections of
the docs pertaining to those syntactic issues. Once you get past that you
should be able to do most things that you can imagine.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2017-06-02 18:59:49 | Re: Using bind variable within BEGIN END |
Previous Message | gulsumramazanoglu | 2017-06-02 18:38:14 | YNT: Re: Using bind variable within BEGIN END |