How to create python script which can create csv we file with relationship

kyosohma at gmail.com kyosohma at gmail.com
Fri Aug 3 09:08:28 EDT 2007


On Aug 3, 6:45 am, Sonu <patelkun... at gmail.com> wrote:
> hello,
> i need to create script
> that can create a csv file as i want
> for example i have two table in database that are person ,country
> if i want to create csv file to person,then wht to do ,,
> how to connect database,how to create csv of interrelated field
> eg :in person table :country_id (which is primary key of country table)

Did you try google? Python has a csv module: http://docs.python.org/lib/module-csv.html

Mike




More information about the Python-list mailing list