10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

OCCI Demonstration Programs<br />

try{<br />

if (rs->next())<br />

{<br />

getVector (rs, 1, c2);<br />

c2[0] = str;<br />

}<br />

stmt->setSQL ("UPDATE journal_tab SET jname = :x WHERE jid = :y");<br />

stmt->setInt (2, c1);<br />

setVector (stmt, 1, c2, "JOURNAL");<br />

stmt->executeUpdate ();<br />

}catch(SQLException ex)<br />

{<br />

cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!