Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'duplicate': 0.07; 'postgresql': 0.07; 'table.': 0.07; 'rows,': 0.09; 'yeah,': 0.09; 'subject:question': 0.10; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'removed,': 0.16; 'subject:API': 0.16; 'subject:where': 0.16; 'wrote:': 0.18; 'select': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'usually': 0.31; 'fri,': 0.33; 'actual': 0.34; 'but': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'oracle': 0.36; 'doing': 0.36; 'subject:?': 0.36; 'two': 0.37; 'either': 0.39; 'most': 0.60; 'name': 0.63; 'real': 0.63; 'mar': 0.68; 'results': 0.69; 'to:none': 0.92; 'from.': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=WUEvtshYLiVc7n/xudJJWZhv7t3qv3gVZ3bXVhAbm9g=; b=rkIbkOx7Eb5V50w5qmWumJjMtEKm21xU9iwF0nxf9U+dIbd+KbROe6UmggFfjTuzh+ E60AIg3CnTuEecbc4HFhBYN48/KmDDXUOaBIW2p5CHcVuiJm4A1t3u7vay4z6FNs9m+E EUwps3jgSlwvX76gB7/H0QeXyZUXsSnY1gkuDN9iHEuI5piF4JsPaqI72n5T50OYb//D 4PQFEMdVVp9ouSiUSOqqdzb5/s5ESPZ4WAanBvqLFLPXpvw5pCP4VQRw2bc0fTXQXa3I ArGgmDJcFo6ZB3zV+FIYYJs0gXTrdb4lXdksv7nOzhuB8lSJRbf38m5dAzXg/217F5NZ mOlw== MIME-Version: 1.0 X-Received: by 10.66.118.71 with SMTP id kk7mr3910759pab.14.1394731959948; Thu, 13 Mar 2014 10:32:39 -0700 (PDT) In-Reply-To: <1394731328.29875.94134461.087FF85B@webmail.messagingengine.com> References: <1394731328.29875.94134461.087FF85B@webmail.messagingengine.com> Date: Fri, 14 Mar 2014 04:32:39 +1100 Subject: Re: DB API question - where is a stored procedure's return value? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394731969 news.xs4all.nl 2851 [2001:888:2000:d::a6]:38659 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68338 On Fri, Mar 14, 2014 at 4:22 AM, wrote: > DUAL is an Oracle thing. It used to have two rows, in order to be used > to duplicate results by doing a cartesian join to it. At some point, > that was removed, but the name stuck. > > Most other servers allow SELECT without FROM. Yeah, I usually use PostgreSQL which does. I don't remember what DB2 has. MySQL I think requires either DUAL or an actual real table. ChrisA