'OPENROWSET for Oracle

Could anybody help me translate this query from T-SQL to PLSQL, please?

I am using SQL Developer.

UPDATE schema.Table SET PICTURES =(SELECT * FROM OPENROWSET (BULK '\\shared folder\Picture.jpg', SINGLE_BLOB) a) WHERE (personID = 1111)

Thank you!



Solution 1:[1]

It looks to me like you are trying to apply a single image to a single person table row by selecting from an image file external to the database.

If my understanding is correct then I suggest you investigate Oracle EXTERNAL TABLE, DIRECTORY object and DBMS_LOB package.

Using some variant of these will certainly provide the solution you need.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1