changing max size to fit default system shm max size
[csql.git] / examples / sqlapi / README
blob10879c095820f8bc812ad8b6522d88ecbc286ea0
1 ----------------------------------README---------------------------------------
2 This contains an example program that demonstates usage of sqlapi 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 100 rows into the table t1, 1 insert per transaction
9 select rows with f1 value 1 to 10 and displays
10 Drop the table
12 How to compile
13 --------------
14 1. Make a copy of this directory in a writable area
15 2. Edit the Makefile and set the CPlus variable to point to the C++
16    compiler on your system.
17 3. Set the necessary enviroment variables using the setup script
18    under the csql root directory
19         $. ./setupenv.ksh
20 4. Use the make command to compile
21         $make
23 How to run
24 ----------
25 1. Set the necessary enviroment variables using the setup script
26    under the csql root directory
27         $. ./setupenv.ksh
29 2. Run the executable created by make
30         $./sqlapiexample
32 Note: This also contains some additional examples which are referred from the user manual.
34 Output of example:
35 ------------------
36 Table t1 created
37 Index created on t1(f1) 
38 Total Rows Inserted 100
39 Row value is 0 Gopika_0
40 Row value is 1 Gopika_1
41 Row value is 2 Gopika_2
42 Row value is 3 Gopika_3
43 Row value is 4 Gopika_4
44 Row value is 5 Gopika_5
45 Row value is 6 Gopika_6
46 Row value is 7 Gopika_7
47 Row value is 8 Gopika_8
48 Row value is 9 Gopika_9
49 Table dropped