In article ,
Steve Holden wrote:
>
>No. That's not how you pass commands to sqlite3 - you connect to a
>database, create a cursor on the connection, and then execute SQL
>statements (not sqlite commands) on the cursor. Like this:
>
import sqlite3
c = sqlite3.connect("deleteme")
cu
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
gintare statkute wrote:
> Does anybody know if it possible to execute sqlite3 dot commands in python?
The dot commands are parsed and executed by different code not part of the
standard SQLite library.
However if you want interactive sh
On Feb 5, 3:19 pm, Steve Holden wrote:
> gintare statkute wrote:
> > Does anybody know if it possible to execute sqlite3 dot commands in python?
>
> > dovanotas:/pages/links# python
> > Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
> > [GCC 4.3.2] on linu
gintare statkute wrote:
> Does anybody know if it possible to execute sqlite3 dot commands in python?
>
> dovanotas:/pages/links# python
> Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
> [GCC 4.3.2] on linux2
> Type "help", "copyright", "credits"
Does anybody know if it possible to execute sqlite3 dot commands in python?
dovanotas:/pages/links# python
Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>