469,588 Members | 2,741 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

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

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
1 1308
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.

Similar topics

2 posts views Thread by satish | last post: by
17 posts views Thread by Paul Rubin | last post: by
3 posts views Thread by Alberto Vera | last post: by
11 posts views Thread by Paul D.Smith | last post: by
1 post views Thread by abcd | last post: by
37 posts views Thread by Steven Bethard | last post: by
1 post views Thread by DierkErdmann | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.