Newbie : Tk an data input

Simon Brunning SBrunning at trisystems.co.uk
Fri Dec 8 06:44:40 EST 2000


> From:	Patrick [SMTP:patrick.fichou at galactica.it]
> Sent:	Friday, December 08, 2000 11:03 AM
> Is someone kind enough to send me an example of a program making a data
> input into a file (an MSAccess Data Base would be great).
 
I would suggest that you use mxODBC - you can get it from
<http://www.lemburg.com/files/python/>. Then DB is as simple as:

myConn = ODBC.Windows.Connect('myDNS')
myCursor = myConn.Cursor()
myCursor.execute("insert into SPAM values('%s', '%s')" % (egg, sausage))
myConn.commit()

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list