windows porting build fix for linux
[csql.git] / examples / odbc / README
blob714676b32ee16b1936f8eb90c4aff6234eaf2e01
1 ----------------------------------README---------------------------------------
2 This contains an example program that demonstates usage of odbc interface.
3 What it does?
4 -------------
5 It creates table T1 with two fields F1 integer and F2 string.
6 Inserts 10 rows into the table T1
7 select all rows and displays
8 Delete all the rows in the table 
9 Drop the table
11 How to compile
12 --------------
13 1. Make a copy of this directory in a writable area
14 2. Edit the Makefile and set the CPlus variable to point to the C++
15    compiler on your system.
16 3. Set the necessary enviroment variables using the setup script
17    under the csql root directory
18         $. ./setupenv.ksh
19 4. 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
27 2. Run the executable created by make
28         $./odbcexample
30 Note: This also contains some additional examples which are referred from the user manual.
32 Output of example:
33 ------------------
34 Connected to CSQL
35 Table T1 created
36 10 Rows inserted
37 Fetching starts on table T1 :
38 F1:11   F2:Gopal
39 F1:12   F2:Aruna
40 F1:13   F2:Kanchana
41 F1:14   F2:Vijay
42 F1:15   F2:Ganga
43 F1:16   F2:XieLiang
44 F1:17   F2:Rajesh
45 F1:18   F2:Steve
46 F1:19   F2:Veda
47 F1:20   F2:Jitendra
48 10 rows fetched
49 10 Rows deleted
50 Table T1 dropped
51 Disconnected from CSQL