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


Groups > comp.lang.python > #36292

Re: psycopg2 cursor.execute CREATE TABLE issue

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 <msirenef@lightbird.net>
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 <msirenef@lightbird.net>
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> <mailman.187.1357508761.2939.python-list@python.org> <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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.189.1357510481.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


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/

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


Thread

psycopg2 cursor.execute CREATE TABLE issue andydtaylor@gmail.com - 2013-01-06 13:38 -0800
  Re: psycopg2 cursor.execute CREATE TABLE issue Mitya Sirenef <msirenef@lightbird.net> - 2013-01-06 16:44 -0500
    Re: psycopg2 cursor.execute CREATE TABLE issue Walter Hurry <walterhurry@lavabit.com> - 2013-01-06 22:37 +0000
  Re: psycopg2 cursor.execute CREATE TABLE issue Chris Angelico <rosuav@gmail.com> - 2013-01-07 08:45 +1100
    Re: psycopg2 cursor.execute CREATE TABLE issue andydtaylor@gmail.com - 2013-01-06 13:53 -0800
      Re: psycopg2 cursor.execute CREATE TABLE issue Mitya Sirenef <msirenef@lightbird.net> - 2013-01-06 17:14 -0500
      Re: psycopg2 cursor.execute CREATE TABLE issue Chris Angelico <rosuav@gmail.com> - 2013-01-07 09:19 +1100
    Re: psycopg2 cursor.execute CREATE TABLE issue andydtaylor@gmail.com - 2013-01-06 13:53 -0800

csiph-web