加载中...

Python

  1. Home
  2. Computing & Technology
  3. Python

Inserting Data Into a MySQL Database

By Al Lukaszewski, About.com

1 of 8

Python and MySQL: Getting Started With Python and MySQL

In this tutorial, we will insert into a MySQL database some value that we take from a user's input. As with reading out of the database,we again will use a class to represent the table of the database.

1 of 8

Index: Inserting Data Into a MySQL Database

  1. Python and MySQL: Getting Started With Python and MySQL
  2. Getting MySQLdb
  3. Importing MySQLdb
  4. Taking Data From the Command Line
  5. A Touch of Class
  6. The main() Thing
  7. Calling the main() Function
  8. Executing the Program

Explore Python

More from About.com

Python

  1. Home
  2. Computing & Technology
  3. Python
  4. Database Programming
  5. Python and MySQL - Inserting Data Into a MySQL Database With Python

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

All rights reserved.