|
opensource sqlite3 database example
|
|
01-16-2010, 10:05 AM
(This post was last modified: 01-16-2010 11:31 AM by codecaine.)
Post: #1
|
|||
|
|||
|
opensource sqlite3 database example
This uses the universal sqlite database which is opensource and can be used on most programming languages. http://www.activestate.com/activepython/ this is a nice python version that already have win32api modules, sqlite, and other modules.
Code: import sqlite3 |
|||
|
01-16-2010, 11:21 AM
(This post was last modified: 01-16-2010 11:34 AM by codecaine.)
Post: #2
|
|||
|
|||
|
opensource sqlite3 database example in Python
Table name is identity and column names are name & age
Here is a example of usage: Option 1. pretty much does everything for you. Option 2. You use a sql command to delete what you want. Here are some examples: #This will delete all records that ages are greater then 10 DELETE FROM identity WHERE age > 10 #This delete any records that have the name mike DELETE FROM identity WHERE name = 'jerome' Option 3. #print all records in the database SELECT * FROM identity #print all records that age is greater then 10 SELECT * FROM identity WHERE age > 10 #print all record names SELECT name FROM identity #print all records that have the name mike SELECT * FROM identity WHERE name = 'mike' option 4. explains itself. Go here to see how to do delete and select sql commands http://www.1keydata.com/sql/sql-commands.html |
|||
|
01-16-2010, 08:59 PM
Post: #3
|
|||
|
|||
|
RE: opensource sqlite3 database example
Very good. I suppose that is in sqlite3 library. Python is so fast in this segment !
There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
01-17-2010, 01:24 AM
Post: #4
|
|||
|
|||
|
RE: opensource sqlite3 database example
yea I forgot that sqlite3 is a standard module in python also
|
|||
|
« Next Oldest | Next Newest »
|





