Quick Search:
 
 Oracle PL/SQL: BFILENAME Jump to:  
Category: >> Oracle PL/SQL >> BFILENAME  

<< lastnext >>

Snippet Name: BFILENAME

Description: BFILENAME returns a BFILE locator that is associated with a physical LOB binary file on the server file system.

'directory' is a database object that serves as an alias for a full path name on the server file system where the files are actually located.

'filename' is the name of the file in the server file system.

The directory argument is case sensitive- you must ensure that you specify the directory object name exactly as it exists in the data dictionary.

Also see:
» Add PSOUG Search to SQL Developer
» Converting Rows to Columns
» UNISTR
» TRANSLATE
» TO_YMINTERVAL
» TO_TIMESTAMP_TZ
» TO_TIMESTAMP
» TO_SINGLE_BYTE
» TO_NUMBER
» TO_NCLOB
» TO_NCHAR
» TO_MULTI_BYTE
» TO_LOB
» TO_DSINTERVAL
» TO_DATE
» TO_CLOB
» TO_CHAR
» TO_BINARY_FLOAT
» TO_BINARY_DOUBLE
» TIMESTAMP_TO_SCN
» SCN_TO_TIMESTAMP
» ROWIDTONCHAR
» ROWIDTOCHAR
» REFTOHEX
» RAWTONHEX
» RAWTOHEX
» NUMTOYMINTERVAL
» NUMTODSINTERVAL
» HEXTORAW
» DECOMPOSE

Comment: (none)

Language: PL/SQL
Highlight Mode: PLSQL
Last Modified: March 05th, 2009

BFILENAME(directory IN VARCHAR2, filename IN VARCHAR2) RETURN BFILE;
 
CREATE DIRECTORY media_dir AS '/demo/schema/product_media';
 
INSERT INTO print_media (product_id, ad_id, ad_graphic)
   VALUES (3000, 31001, 
      BFILENAME('MEDIA_DIR', 'sqluniversity_ad.gif'));
 


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org