Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread Alan Gauld
"michael scott" wrote > Is this really a python tutor question? Oh, well, try this: > http://lmgtfy.com/?q=sqlite+test+if+table+exists My apologies, I was not aware that there were questions I could and could not ask. The only issue is whether it is relevant to the group. Python tutor is

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread Joel Goldstick
On Wed, Apr 6, 2011 at 10:38 AM, michael scott wrote: > > > -- > *From:* Andre Engels > > *To:* michael scott > *Cc:* tutor@python.org > *Sent:* Wed, April 6, 2011 10:19:53 AM > > *Subject:* Re: [Tutor] (sqlite3) Testing if a table has b

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread michael scott
From: Andre Engels To: michael scott Cc: tutor@python.org Sent: Wed, April 6, 2011 10:19:53 AM Subject: Re: [Tutor] (sqlite3) Testing if a table has been created. On Wed, Apr 6, 2011 at 4:06 PM, michael scott wrote: Is this really a python tutor question

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread Andre Engels
On Wed, Apr 6, 2011 at 4:06 PM, michael scott wrote: > Is this really a python tutor question? Oh, well, try this: > http://lmgtfy.com/?q=sqlite+test+if+table+exists > > -- > Joel Goldstick > > > My apologies, I was not aware that there were questions I could and could > not ask. I understand n

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread michael scott
From: Joel Goldstick To: michael scott Cc: tutor@python.org Sent: Wed, April 6, 2011 8:30:17 AM Subject: Re: [Tutor] (sqlite3) Testing if a table has been created. On Tue, Apr 5, 2011 at 9:59 PM, michael scott wrote: Hello guys, > >Since sqlite gi

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-06 Thread Joel Goldstick
On Tue, Apr 5, 2011 at 9:59 PM, michael scott wrote: > Hello guys, > > Since sqlite gives an error if you try to create a table that's already > there, how do I test if a table is already present? > > > for example in > > def database(info): > import sqlite3 > > connection = sqlite3.conne

Re: [Tutor] (sqlite3) Testing if a table has been created.

2011-04-05 Thread Robert Helmer
On Tue, Apr 5, 2011 at 6:59 PM, michael scott wrote: > Hello guys, > > Since sqlite gives an error if you try to create a table that's already > there, how do I test if a table is already present? > > > for example in > > def database(info): > import sqlite3 > > connection = sqlite3.connec

[Tutor] (sqlite3) Testing if a table has been created.

2011-04-05 Thread michael scott
Hello guys, Since sqlite gives an error if you try to create a table that's already there, how do I test if a table is already present? for example in def database(info): import sqlite3 connection = sqlite3.connect("test.db") cursor = connection.cursor() if table not in test.d