CS 348: Embedded SQL samples
Set up your environment:
source ~db2inst2/sqllib/db2{profile|cshrc}
Use the provided
Makefile
and the
util.{c,h}
files to build the apps.
sample1.sqc
: A dummy connect application.
sample2.sqc
: Simple retrieval.
sample3.sqc
: Use of cursors.
sample4.sqc
: Cursors and DB modification.
adhoc.sqc
: Dynamic SQL example.
Makefile
: Makefile needed to build the apps.
util.c
: Utilities (error reporting)
util.h
: Header for
util.h