Hello,
I am trying to insert some data into a table I just made. I get an
exception when I try to do a cur.save(). The exception I get is "No
data to save". Is there something I am missing or doing wrong?
Here is the relevant code:
#Insert some test data
cur.execute("INSERT INTO mytesttable
(first_name,last_name,amount_owes) VALUES ('Brandon', 'Singer',
1234.01)")
cur.execute("INSERT INTO mytesttable
(first_name,last_name,amount_owes) VALUES ('Dabo', '', -123)")
cur.save()
print cur.execute("select * from mytesttable")
for row in cur.fetchall():
print row[0], row[1], row[2], row[3]
--
-Echo
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users