source: trunk/examples/sql/sqltable/README

Last change on this file was 202, checked in by rudi, 14 years ago

Added SQL examples

File size: 622 bytes
Line 
1This SQL table example requires a connection to a SQL database.
2Modify main.cpp to connect to your specific database.
3
4This example program expects a table called 'simpletable' to exist in
5the database. You can create this table by running the following SQL
6script (modify to suit your backend, if necessary):
7
8drop table simpletable;
9create table simpletable
10(id number primary key,
11name varchar(20),
12address varchar(20) );
13
14-- optional, some sample data
15insert into simpletable (id, name, address)
16values (1, 'Trond', 'Oslo');
17insert into simpletable (id, name, address)
18values (2, 'Dave', 'Oslo');
Note: See TracBrowser for help on using the repository browser.