1. Home
  2. Computing & Technology
  3. Python

Inserting Data Into a PostgreSQL Database

From , former About.com Guide

3 of 7

Mark Your Place in PostgreSQL With Python

Next, Python likes to be able to keep track of where it last left off in reading and writing to the database. In psycopg, this is called the cursor, but we will use the variable 'mark' for our program. So, we can then construct the following assignment:

mark = connection.cursor()

Explore Python
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Python
  4. Database Programming
  5. Python and PostgreSQL - Inserting Data Into a PostgreSQL Database - Mark Your Place in PostgreSQL With Python

©2009 About.com, a part of The New York Times Company.

All rights reserved.