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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Deleting a row in a nested table<br />

void deleteRow (int c1, string str)<br />

{<br />

cout setInt (1, c1);<br />

OCCI Demonstration Programs<br />

ResultSet *rs = stmt->executeQuery();<br />

try{<br />

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

{<br />

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

c2.erase (find (c2.begin(), c2.end(), 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!