By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

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

P: n/a
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)

Aug 3 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Aug 3, 6:45 am, Sonu <patelkun...@gmail.comwrote:
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

Aug 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.