Hello
I'm using pySqlite and can return data using SELECT statement in SQLite
ie
which works!
but you get an error if you try another SELECT - 'Warning: You can only execute one statement at a time'
this causes the error:
so I've tried using cursor.executes cript with the 2 SELECTS - I don't get an error but I don't get any data either!!! (The cursor is empty?)
The 2 select statements work fine in SQLite3 as does using just one select from the above.
Can anyone help please?
Many thanks
Ogg
:)
I'm using pySqlite and can return data using SELECT statement in SQLite
ie
Code:
cursor.execute ('select * from work order by name,ext')
but you get an error if you try another SELECT - 'Warning: You can only execute one statement at a time'
this causes the error:
Code:
cursor.executescript ('select * from work where nkey <=9;select * from work where nkey>94 and nkey<100;')
so I've tried using cursor.executes cript with the 2 SELECTS - I don't get an error but I don't get any data either!!! (The cursor is empty?)
The 2 select statements work fine in SQLite3 as does using just one select from the above.
Can anyone help please?
Many thanks
Ogg
:)
Comment