472,142 Members | 1,026 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

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 1357
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.