software:db2:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:db2:start [2017/03/29 11:16] – seela | software:db2:start [2017/03/29 11:23] (current) – seela | ||
---|---|---|---|
Line 228: | Line 228: | ||
</ | </ | ||
+ | |||
+ | ====A Sample JDBC Program with type 4 connectivity==== | ||
+ | \\ | ||
+ | | ||
+ | |||
+ | \\ | ||
+ | Once downloaded , rename the file to EzSailor.java | ||
+ | \\ | ||
+ | Edit the java source file to modify the database and tables you have created | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | Must be renamed to EzJava.java and edited to make the right connection | ||
+ | \\ | ||
+ | **How to execute the jdbc program** | ||
+ | \\ | ||
+ | Make sure you have the table " | ||
+ | be able to execute | ||
+ | |||
+ | * source the client configuration file : ~db2leduc/ | ||
+ | * javac EzSailor.java | ||
+ | * java EzJava c3421m | ||
+ | ---- | ||
+ | \\ | ||
+ | |||
+ | ====A Sample Sqlj Program with type 4 connectivity==== | ||
+ | **How to execute the sqlj code** | ||
+ | \\ | ||
+ | * Download the sample code | ||
+ | * Table " | ||
+ | {{: | ||
+ | \\ | ||
+ | This is a sample sqlj program that does the precompiling for you . | ||
+ | Remember these are just example scripts to aid the development of your own code | ||
+ | \\ | ||
+ | \\ | ||
+ | * Program name : sailor.sqlj | ||
+ | * source ~db2leduc/ | ||
+ | * sqlj sailors.sqlj | ||
+ | * db2sqljcustomize -url jdbc: | ||
+ | * java sailors 71 | ||
+ | will return your output | ||
+ | |||
+ | |||
+ | \\ | ||
software/db2/start.1490800586.txt.gz · Last modified: 2017/03/29 11:16 by seela