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.

OCCI Demonstration Programs<br />

stmt->setString(1,fs_name);<br />

stmt->executeUpdate();<br />

con->commit();<br />

con->terminateStatement (stmt);<br />

cout executeQuery ();<br />

while (resultSet->next ())<br />

{<br />

count++;<br />

RefAny fs_refany = resultSet->getRef(1);<br />

Ref fs_ref(fs_refany);<br />

fs_ref.setPrefetch(4);<br />

string fmt = "DD-MON-YYYY";<br />

string nlsParam = "NLS_DATE_LANGUAGE = American";<br />

Date fs_dob = fs_ref->getdob();<br />

string date1 = fs_dob.toText (fmt, nlsParam);<br />

cout

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

Saved successfully!

Ooh no, something went wrong!