EMPTY_BLOB function in Oracle

EMPTY_BLOB is an advanced function that the Oracle database supports. It is used to initialize a LOB column to EMPTY in an INSERT or UPDATE statement. It can also be used to initialize a LOB variable. The EMPTY_BLOB function is supported in the various versions of the Oracle/PLSQL, including, Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i and Oracle 8i.




UPDATE students
SET student_marks = EMPTY_BLOB();

Explanation: Here, the student_marks column would be initialized to EMPTY.

Please follow and like us:
Content Protection by DMCA.com