Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91940

Re: Calling Python Script from an SQL Proceudre

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <kushal@locationd.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.082
X-Spam-Evidence '*H*': 0.85; '*S*': 0.02; 'subject:Python': 0.05; 'postgresql,': 0.09; 'python': 0.11; 'example:': 0.11; 'all,': 0.20; 'trying': 0.22; 'appreciated': 0.23; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'header:User-Agent:1': 0.26; 'to:addr :python-list': 0.35; 'url:org': 0.36; 'subject:: ': 0.37; 'url:docs': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'information': 0.62; 'internet': 0.69; 'amit': 0.84; 'round.': 0.84; 'subject:SQL': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=simple/simple; d=locationd.net; s=mail; t=1433327889; bh=XtSbvZ+Dk+WBlRNhaXb2Dsmt04kaZbqfCfG7wqP5Aco=; h=From:To:Subject:References:Date:In-Reply-To:From; b=FRyBXZmG2y0MDpSHqjODCZdpJjcN7h3+1IGQV7Mnw6v8yLfuvtzlZ+A+pWoNJDZ8S Tu8yOfdMmoNNg9PbOdW8HeW74AYKxQ9RPuZ8mU3gDDlD32QT/4AsghhqbtgG/JsZvo /LNKQRkQ4UVI1lXIHnYksicS+gNY3mgzIuyg+Qeo=
X-Spam-Checker-Version SpamAssassin 3.3.2 (2011-06-06) on calcium.locationd.net
X-Spam-Level
X-Spam-Status No, score=-1.5 required=5.0 tests=BAYES_00,NO_RELAYS, T_DKIM_INVALID autolearn=ham version=3.3.2
DKIM-Signature v=1; a=rsa-sha256; c=simple/simple; d=locationd.net; s=mail; t=1433327883; bh=XtSbvZ+Dk+WBlRNhaXb2Dsmt04kaZbqfCfG7wqP5Aco=; h=From:To:Subject:References:Date:In-Reply-To:From; b=HDGMoJNXewjIoVzdcQrHdosXkLpQiNIbmgXSiGvgYvLc0pYLjGbFoA/13Y8U8p2R+ VJXzZEXe7l6fTj8VsREKGRfTWS2QJJbwdTPvsOwk0w0r0KfFlFLARYluHjvN3GlL6S Id1Nj07kRcMWumr8i4R3aIzrVXD3YRceZn6m/FD4=
From Kushal Kumaran <kushal@locationd.net>
To python-list@python.org
Subject Re: Calling Python Script from an SQL Proceudre
References <CAJ5KB9jsYR0E+chPonkGAFkt1ihW0FSJ_3s0YXF_XRj7wmDMrw@mail.gmail.com>
Date Wed, 03 Jun 2015 16:08:01 +0530
In-Reply-To <CAJ5KB9jsYR0E+chPonkGAFkt1ihW0FSJ_3s0YXF_XRj7wmDMrw@mail.gmail.com> (Amit Goutham's message of "Wed, 3 Jun 2015 15:17:16 +0530")
User-Agent Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux)
MIME-Version 1.0
Content-Type text/plain
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.98.1433328007.13271.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1433328007 news.xs4all.nl 2958 [2001:888:2000:d::a6]:60031
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:91940

Show key headers only | View raw


Amit Goutham <agn.91.91@gmail.com> writes:

> Hi All,
> I am trying to search on the Internet if i can call a Python Script from an
> SQL Procedure.
> All the information found on Internet is about connecting to a database
> from Python through a Python script.But, i want the other way round.
>
> Any Help will be appreciated
>

Which database are you using?

This is how to do it in postgresql, for example:
http://www.postgresql.org/docs/current/static/plpython.html

-- 
regards,
kushal

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Calling Python Script from an SQL Proceudre Kushal Kumaran <kushal@locationd.net> - 2015-06-03 16:08 +0530

csiph-web