Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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; 'subject:skip:c 10': 0.07; 'wrapper': 0.07; 'python:': 0.09; 'cc:addr:python-list': 0.10; 'andy': 0.16; 'iirc': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'sqlalchemy': 0.16; 'subject:issue': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'windows': 0.19; 'libraries': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; "i'm": 0.29; 'usually': 0.30; 'that!': 0.33; 'thanks': 0.34; "wasn't": 0.36; 'method': 0.36; 'subject:: ': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'think': 0.40; 'first': 0.61; 'email addr:gmail.com': 0.63; 'more': 0.63; 'afraid': 0.66; '2013': 0.84; 'wow': 0.84; 'mistake': 0.91 Date: Sun, 06 Jan 2013 17:14:34 -0500 From: Mitya Sirenef User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: andydtaylor@gmail.com Subject: Re: psycopg2 cursor.execute CREATE TABLE issue References: <185b6d9e-99ce-4f2a-81ea-d9a63b81b4cf@googlegroups.com> <10bc4895-21e3-4a56-84fd-b0830e42acfa@googlegroups.com> In-Reply-To: <10bc4895-21e3-4a56-84fd-b0830e42acfa@googlegroups.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 1357510481 news.xs4all.nl 6924 [2001:888:2000:d::a6]:53147 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36292 On Sun 06 Jan 2013 04:53:32 PM EST, andydtaylor@gmail.com wrote: > Wow it's as simple as that! I'm afraid my database experience is in Microsoft Access in Windows and not at the command line, so that wasn't intuitive for me. > > Thanks again, > > Andy IIRC I made the same mistake when I was using psycopg for the first time. I think wrapper libraries like sqlalchemy usually have myrecord.save() method which is more intuitive. -m -- Lark's Tongue Guide to Python: http://lightbird.net/larks/