News Feed
Jobs Feed
Sections




News Archive
Chris Jones' Blog:
Inserting and Updating Oracle XMLType columns in PHP
July 13, 2009 @ 08:14:21

All of you Oracle users out there might want to check out this recent post from Chris Jones, especially if you've been using the XMLType columns in your tables.

Today a reader mailed me about manipulating XMLType columns when the data is longer than the 4K limit that character-type handling imposes. My free book (see sidebar) has examples of how to do this using CLOB handling in PHP. I noticed that my xmlinsert.php example in the book does a SELECT and UPDATE, but never actually does an INSERT.

To correct the problem of the missing example he includes example code to connect to the database, push the XML into a bind variable and select the row back out to ensure everything's still structured correctly. You need to set up a new descriptor for the insert to work (CLOB).

0 comments voice your opinion now!
clob column xmltype xml oracle insert


blog comments powered by Disqus

Similar Posts

Christopher Jones' Blog: Oracle at PHPSC - Grupo de Usuarios de PHP do Estado de Santa Catarina

PHPBuilder.com: Using XML - Part 6: Validation

IBM developerWorks: Use an XML database in PHP and Java applications

Stuart Herbert's Blog: Using SimpleXML To Parse RSS Feeds

Christopher Jones' Blog: Time for testing the final PHP 5.2 release


Community Events











Don't see your event here?
Let us know!


series framework community development opinion code podcast interview conference introduction composer language unittest example zendframework2 testing functional tool api release

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework