[Tutor] Setting up a database
James O. Sweeney
james.sweeney at ieee.org
Wed Mar 2 00:22:08 CET 2005
Hello,
I have an assignment that entails entering cash transactions as records. The
significant record fields are a date/time stamp, the amount, and whether the
transaction is a deposit or withdrawal. My question is about setting up the
database file. In Python there is a dictionary function but it looks as if
only one value can be assigned to the key (I intend to make the key the
timestamp). The file has to be searchable so that reports can be pulled
regarding amount, date range, etc. - the usual things one would do with a
database. I can't figure if I can make a query on a multi-field record in
Python without engaging a dependency such a storing the record in a mySQL
database and querying it from Python. I'm having real burnout with this and
would appreciate a point in the right direction.
Much Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050301/4c47f2b1/attachment.htm
More information about the Tutor
mailing list