Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'argument': 0.04; 'subject:Python': 0.05; 'sql.': 0.07; 'rows': 0.09; 'sep': 0.09; ':-)': 0.13; 'limit.': 0.16; 'mistake.': 0.16; 'offset,': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'changes': 0.20; '(all': 0.22; 'subject:Questions': 0.22; 'cheers,': 0.23; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'chris': 0.28; 'no,': 0.29; 'returned': 0.30; "he's": 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; "didn't": 0.36; 'problems': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'limit': 0.65; 'lack': 0.71; 'subject:Interview': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=/PpPLCjL+VD1bVEa73fzksycBauWjXIk1yC5417t7dY=; b=EIQ0w46dvk68m6IvKTJbNZ/8uersz256ztT8Wjquvy78yjzQ7E1YC/B1us4MqsvxQ1 +/OhyxkHGzmJe28MQOShqQhXKYC5BYzPz/+WfolQZrr0yPLcQVGmUV8bSnvpQ9NsKJ4S 7lZ/JkO/fr5viiF3n/mv+Gl/eKe3foYdCzPUXD+SAjNBj/8pZb6sYoEKRAKV61ppZIEF PNPDVYF3PVKrkzlPJYrpcGaYbdAtyrUDOi0vCNkZ/BydBIkj0Z5X3tMWxoJ06xLi8EZG 9BjDnsrYNrufXMQMzUfyrRcQ47mM9gsf5gYQPL3FpllRlq4d7KsMC3+ExjUUnaox30b3 /R3A== MIME-Version: 1.0 In-Reply-To: References: <1193768041.349129.26350@v3g2000hsg.googlegroups.com> From: Ian Kelly Date: Wed, 5 Sep 2012 10:40:56 -0600 Subject: Re: Python Interview Questions To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346863293 news.xs4all.nl 6896 [2001:888:2000:d::a6]:36432 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28523 On Wed, Sep 5, 2012 at 9:34 AM, Chris Angelico wrote: > On Thu, Sep 6, 2012 at 1:22 AM, Ian Kelly wrote: >> The lack of an ORDER BY is the least of the problems with that SQL. >> He's also using LIMIT without OFFSET, so the only thing that the >> 'item' argument changes is how many rows are returned (all but one of >> which are ignored), not which one is actually fetched. > > No, he's using the two-arg form of LIMIT. My mistake. I didn't even know there was a two-arg form of LIMIT. Must be a MySQL thing. :-) Cheers, Ian