diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-08 12:31:36 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-08 12:31:36 -0600 |
commit | d796c9dd933ab96ec83b9a634feedd5d32e1ba3f (patch) | |
tree | 6e3dcca4f77e20ec8966c666aac7c35bd4704053 /examples/sql/sqltable/README | |
download | tqt3-d796c9dd933ab96ec83b9a634feedd5d32e1ba3f.tar.gz tqt3-d796c9dd933ab96ec83b9a634feedd5d32e1ba3f.zip |
Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731
Diffstat (limited to 'examples/sql/sqltable/README')
-rw-r--r-- | examples/sql/sqltable/README | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/sql/sqltable/README b/examples/sql/sqltable/README new file mode 100644 index 000000000..701458835 --- /dev/null +++ b/examples/sql/sqltable/README @@ -0,0 +1,18 @@ +This SQL table example retquires 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'); |