| Oracle8i Application Developer's Guide - Large Objects (LOBs)  Release 2 (8.1.6) Part Number A76940-01  | 
  | 
External LOBs (BFILEs), 41 of 41
| 
See Also:
 "Use Case Model: External LOBs (BFILEs)" for all basic operations of External LOBs (BFILES).  | 
This procedure describes how to DELETE the row of a table containing a BFILE.
Unlike internal persistent LOBs, the LOB value in a BFILE does not get deleted by using SQL DDL or SQL DML commands -- only the BFILE locator is deleted. Deletion of a record containing a BFILE column amounts to de-linking that record from an existing file, not deleting the physical operating system file itself. An SQL DELETE statement on a particular row deletes the BFILE locator for the particular row, thereby removing the reference to the operating system file.
See the following syntax reference:
The following DELETE, DROP TABLE, or TRUNCATE TABLE statements delete the row, and hence the BFILE locator that refers to Image1.gif, but leave the operating system file undeleted in the filesystem.
The following examples are provided in SQL and apply to all programmatic environments:
DELETE FROM Multimedia_tab WHERE Clip_ID = 3;
DROP TABLE Multimedia_tab;
TRUNCATE TABLE Multimedia_tab;
| 
 | 
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved.  | 
 
  |