>
> 1. import sqlite3
> 2. conn=sqlite3.connect("mydb2.db")
> 3. c=conn.cursor()
> 4. c.execute('create table family (Id integer primary key, name text, age
> integer)')
> 5. c.execute("insert into family values (1,'elham',32)")
> 6. c.execute('select * from family')
> 7. conn.commit()
> 8. for i
Hi All,
hi Joel,
Regarding sqlite3 practice code below:
1. import sqlite3
2. conn=sqlite3.connect("mydb2.db")
3. c=conn.cursor()
4. c.execute('create table family (Id integer primary key, name text,
age integer)')
5. c.execute("insert into family values (1,'elham',32)")
6.
Alan Gauld wrote:
> On 23/05/12 17:11, Khalid Al-Ghamdi wrote:
>
>> I'm using Python 3 and have read that you need sqlite to be installed to
>> use the sqlite3 module, but when it is imported it seems to work ok.
>
> The info is wrong.
> Unlike other SQL databases SQLite is not a server based sy
On 23/05/12 17:11, Khalid Al-Ghamdi wrote:
I'm using Python 3 and have read that you need sqlite to be installed to
use the sqlite3 module, but when it is imported it seems to work ok.
The info is wrong.
Unlike other SQL databases SQLite is not a server based system so there
is nothing to ins
On 05/23/2012 12:51 PM, Joel Goldstick wrote:
On Wed, May 23, 2012 at 12:11 PM, Khalid Al-Ghamdi wrote:
hi all,
I'm using Python 3 and have read that you need sqlite to be installed to use
the sqlite3 module, but when it is imported it seems to work ok. so, do you
need to install it? also, w
On Wed, May 23, 2012 at 12:11 PM, Khalid Al-Ghamdi wrote:
> hi all,
>
> I'm using Python 3 and have read that you need sqlite to be installed to use
> the sqlite3 module, but when it is imported it seems to work ok. so, do you
> need to install it? also, when you create the database where is it sa
hi all,
I'm using Python 3 and have read that you need sqlite to be installed to
use the sqlite3 module, but when it is imported it seems to work ok. so, do
you need to install it? also, when you create the database where is it
saved?
thanks
___
Tutor