#include <stdlib.h> exec sql include sqlca; main() { exec sql connect to 'enterprisedb@localhost:9999' user 'enterprisedb' identified by 'enterprisedb'; exec sql BEGIN TRANSACTION; exec sql UPDATE a5 SET id=100 WHERE id=88; exec sql COMMIT; exec sql disconnect all; return 0; }
这里面,用的是连接 enterprisedb 的PPAS的例子