Re: Formatting Embedded SQL
"Milo Pschigoda" <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
On 12/5/06, Rich Shepard <[email protected]> wrote: > On Tue, 5 Dec 2006, Milo Pschigoda wrote: > > > self.cur.execute("CREATE TABLE name (ID integer primary key,"+ > > "col2 integer,"+ > > "col3 text)") > > And the plus signs are accepted by sqlite? Kewel! > > > Just a thought, but I bet there's a programmatic way to do it better. > > Then perhaps we'll both learn something new. The addition actually happens in python before it gets passed to execute()