Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'insert': 0.05; 'postgresql': 0.07; 'subject:How': 0.10; 'cc:addr:python- list': 0.11; 'creates': 0.14; 'books': 0.15; '"insert': 0.16; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'inserting': 0.16; 'syntax,': 0.16; 'wrote:': 0.18; "hasn't": 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'extension': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'skip:( 20': 0.30; 'checked': 0.32; 'worked': 0.33; 'subject:with': 0.35; 'common': 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; 'server': 0.38; 'rather': 0.38; 'records': 0.73; '"one': 0.84; 'received:50.22': 0.84; 'subject:find': 0.84 Date: Sat, 30 Mar 2013 06:38:58 -0500 From: Tim Chase To: Dennis Lee Bieber Subject: Re: How to find bad row with db api executemany()? In-Reply-To: <2mocl85ru7r58tluf05e47qicjecpht68c@invalid.netcom.com> References: <5155E32A.1000403@davea.name> <2mocl85ru7r58tluf05e47qicjecpht68c@invalid.netcom.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com Cc: python-list@python.org 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364643439 news.xs4all.nl 6974 [2001:888:2000:d::a6]:44949 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42334 On 2013-03-30 00:19, Dennis Lee Bieber wrote: > I think MySQL is the only common DBMS with an extension on > INSERT of allowing multiple records (I've not checked my Access > 2010 docs, and my MSDE/SQL-Server books are in storage -- but > SQLite3, Firebird, and PostgreSQL all seem to be "one INSERT = one > record"). MS SQL Server supports the "INSERT INTO ... SELECT" syntax as well. Strangely, it *also* supports "SELECT ... INTO tblNew" but that creates the tblNew, rather than inserting into an existing one. I've seen Chris's suggestion about "INSERT INTO (f1,f2,f3) VALUES (v1,v2,v3),(v4,v5,v6);" syntax, but that hasn't worked cross-RDBMS for me, so I always have to resurrect the syntax. -tkc