From bd0f3345a938b35ce6a12f6150373b0955b8dd12 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 10 Jul 2011 15:24:15 -0500 Subject: Add Qt3 development HEAD version --- examples/sql/sqltable/README | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/sql/sqltable/README (limited to 'examples/sql/sqltable/README') diff --git a/examples/sql/sqltable/README b/examples/sql/sqltable/README new file mode 100644 index 0000000..4fad463 --- /dev/null +++ b/examples/sql/sqltable/README @@ -0,0 +1,18 @@ +This SQL table example requires a connection to a SQL database. +Modify main.cpp to connect to your specific database. + +This example program expects a table called 'simpletable' to exist in +the database. You can create this table by running the following SQL +script (modify to suit your backend, if necessary): + +drop table simpletable; +create table simpletable +(id number primary key, +name varchar(20), +address varchar(20) ); + +-- optional, some sample data +insert into simpletable (id, name, address) +values (1, 'Trond', 'Oslo'); +insert into simpletable (id, name, address) +values (2, 'Dave', 'Oslo'); -- cgit v1.2.1