*** empty log message ***
[csql.git] / examples / jdbc / README
blob7cfee4914b350a86a1b8564426a4605e7573ccfc
1 ----------------------------------README---------------------------------------
2 This contains an example program that demonstates usage of jdbc interface.
4 What it does?
5 -------------
6 It creates table T1 with two fields f1 integer and f2 string.
7 Creates index on f1 field of T1 table.
8 Inserts 10 rows into the table T1, 1 insert per transaction
9 Update all rows where f1 field have even numbers
10 Delete all rows where f1 value is 0,3,6,9
11 Select rows with f1 value 0 to 9 and displays
12 Drop the table
14 How to compile
15 --------------
16 1. Make a copy of this directory in a writable area
17 2. Edit the Makefile and set the JAVAC variable to point to the javac
18    compiler on your system.
19 3. Use the make command to compile
20         $make
22 How to run
23 ----------
24 1. Set the necessary enviroment variables using the setup script
25    under the csql root directory
26         $. ./setupenv.ksh
28 2. Run the class file created by make
29         $java jdbcexample
32 Output of example:
33 ------------------
34 Table t1 created
35 Index created on T1 (f1) 
36 Total Rows inserted 10
37 Total Rows updated 5
38 Total Rows deleted 4
39 Tuple value is 1 101
40 Tuple value is 2 202
41 Tuple value is 4 204
42 Tuple value is 5 105
43 Tuple value is 7 107
44 Tuple value is 8 208
45 Total Rows selected 6
46 Dropped table T1