Exercises, examples and other material relating to training module S200. This module is presented on Private Courses
and Specially Run Courses
SQLite is a database that's well suited for smaller
volume applications as it embeds within the application
rather than running as a separate server. Cleverly written,
it overcomes the issues which have previously pushed even
quite limited applications into using a client / server
model. And it's built in to many of the products that we
teach, so it's likely there and ready for your use.
|Articles and tips on this subject||updated|
|4024||SQL databases from Python - an SQLite example|
There's a new example of relational database use in Python [here] on our site - from the Python course I ran last week. If you cut and paste the script onto your system, it should run with little fuss (and without needing a separate database engine) as it uses sqlite - the built in SQL database - as ...
|4007||Which database should I use? MySQL v SQLite|
Which SQL Database would I advise newcomers with a new application to use?
Five years ago, MySQL would have been the obvious choice in many circumstances. But these days, MySQL has grown into a much bigger product and there are very serious licensing and other commercial issues that need to be considered; ...
|4006||Ruby / SQLite3 example program, showing JOIN v LEFT JOIN|
Ruby includes support for the SQLite3 database ... and SQLite is an excellent tool for developing and testing ("Spike solutions") your database structure and concepts before implementing a larger system. For a smaller and straightforward requirement, SQLite may be all that you require.
Towards the ...
|3269||Files or Databases? MySQL, SQLite, or Oracle?|
Are plain files a bad idea? Should you use a database instead?
Plain text files are a great way of saving data in some circumstances ... but in other circumstances they have "issues":
1. If you're saving columns of data in a plain text file, you need to have some sort of separator between the columns, ...
|3139||Steering our Python courses towards wxPython, SQLite and Django|
With our modular courses that we write ourselves, we've well placed to move forward with technology; more often than not, what's needed is a series of gentle changes, adding in the occasional module for private courses where a particular new subject is needed, with it being introduced into public courses ...
|3099||Perl - database access - DBD, DBI and DBIx modules|
Perl's DBI module provides an excellent link from SQL databases to Perl, and the assorted DBD modules that fit underneath it allow it to operate well for a whole lot of different databases. But they are only excellent as far as they go - for the SQL statements have to be generated in your application ...
|2786||Factory methods and SqLite in use in a Python teaching example|
I've just uploaded a neat little example - [here] from last week's Python course - it's amazing what you can do in a very few lines of code.
The application scenario is that we have a database of customers - some are residents at our hotel and others are delegates on our courses. Being mercenary folks, ...
|2744||PyQt (Python and Qt) and wxPython - GUI comparison|
We're running a tailored 3 day Python course at present, using Python 3 if it's practical, and today we compared the two contenders for the "Top GUI" prize - that's Python with Qt (PyQt) and wxPython. Now wxPython isn't yet available in Python 3, but PyQt is - although some of the documentation refers ...
|2746||Model - View - Controller demo, Sqlite - Python 3 - Qt4|
The Model - View - Controller approach to application design keeps the Graphic User Interface (the view) separate from the database (the model), with the controller in between the two, describing how the data is displayed, and how changes to the data are saved away in the database. By separating the ...
|2745||Connecting Python to sqlite and MySQL databases|
For developing a Python application, and for light use, the SQLite database may be a good choice ... but then you may want to be able to expand the system to use a central database with a more classic server such as MySQL at a later date.
Using Polymorphism in Python, and with a careful choice of which ...
|2561||The future of MySQL|
MySQL has grown from a very neat little open source database 10 years ago into a very powerful and widespread database that's not always fully open source any longer today. The MySQL company was bought out by Sun a couple of years back (January 2008), and in turn Oracle are now buying Sun. This deal ...
Examples from our training material
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
What is a relational database, SQL.
SQL commands, and the SQLite stand alone program
What's different in the SQLite model?
Designing an SQLite database.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.