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

S

Sonu

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)
 
K

kyosohma

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top