skip to Main Content

Using ADOdb with ODBC and Oracle – PHP

I've been given access to an Oracle Server via ODBC and tested the connection using Oracle SQL Developer. These are the connection constants I've set in PHP: define('APP_DB_HOST', '192.168.1.1'); define('APP_DB_PORT', '1521'); define('APP_DB_USER', 'MyUser'); define('APP_DB_PASS', 'MyPass'); define('APP_DB_SID', 'MyDatabaseSID'); define('APP_DB_SCHEMA', 'MyDatabaseSchema'); With…

VIEW QUESTION

How To Parse JSON DATA IN ORACLE

A table has JSON data in the HUGECLOB column. And I want to parse it. How can I do it? {"errors":{"destination_country_id":["can not be blank"],"dispatch_country_id":["can not be blank"],"vehicle_id":["can not be blank"],"trailer_id":["can not be blank"]}} I tried this; SELECT t.* FROM table,…

VIEW QUESTION

JSON_TABLE – Get nodes regardless of path

In a XML like this: <item> <id>1</id> <name>ITEM 1</name> <subitems> <item> <id>2</id> <name>SUBITEM 1</name> <subitems/> </item> <item> <id>3</id> <name>SUBITEM 2</name> <subitems> <item> <id>4</id> <name>SUBITEM 3</name> <subitems/> </item> </subitems> </item> </subitems> </item> There can be several levels of subitems in the…

VIEW QUESTION

How to update json property of TimeStamp in oracle

I have one of the column audit_info with JSON data in the table: { "AddInfo":{ "UPN":"[email protected]", "UserName":"[email protected]", "TimeStamp":"2021-10-11T15:54:34:4805634Z", "Source":"xyz" }, "ChangeInfo":{ "UPN":"[email protected]", "UserName":"[email protected]", "TimeStamp":"2021-10-11T15:54:34:4832421Z", "Source":"xyz" } } I need to update TimeStamp of seconds decimal point from :4832421Z to .4832421Z…

VIEW QUESTION
Back To Top
Search