Table Blob to Oracle Directory

How to save table images to oracle directory? Files from table to Oracle directory DECLARE l_file UTL_FILE.file_type; l_buffer RAW (32767); l_amount BINARY_INTEGER := 32767; l_position INTEGER := 1; l_blob_length INTEGER; BEGIN FOR l_cnt IN (SELECT filename, product_image FROM demo_product_info) LOOP l_file := …

Oracle NULLIF() Function

Oracle NULLIF() Function: The Oracle NULLIF() function accepts only two arguments. If the both arguments are equal it returns a null value. In case the arguments are not equal, the NULLIF() function returns the first argument and if any arguments will null then function return an error. Syntax of the NULLIF() …

Oracle NVL2 Function

Oracle NVL2 Function: NVL2() function is an extend version of the NVL() function with different options based on whether a NULL value exists. Oracle NVL2() function allow three parameters. If the first parameter is not null, then it returns the second parameter. In case the second parameter is null, then it returns the …

Oracle Decode Function

Oracle Decode Function: Oracle DECODE() function compares the first argument with the second argument. IF they are equal, the function returns the third argument otherwise return default value. The Oracle/PLSQL DECODE function has the functionality of an IF-THEN-ELSE statement: SELECT DECODE (1, 1, 'ONE', …

Oracle NVL Function

Oracle NVL Function: The NVL function allow you to replace null values with a default value. If the first parameter is null, the function returns the second parameter. If the first parameter have some value then always return first value. Note := NVL function replaces null value with same type data. Syntax of the …

Oracle NULL-Related Functions

Oracle NULL-Related Functions. There are different type of null related function in oracle. NVL NVL function will check whether the first input parameter is null, if its null value, it returns the second parameter value. DECODE The Oracle/PLSQL DECODE function has the functionality of an IF-THEN-ELSE statement. * …

Preview an Image Before Upload Oracle APEX

Preview an Image Before Upload Oracle APEX Sometimes we face the requirement like how to show the image before image upload. There are some easy steps to preview images before upload. Create a blank page with two region. One for file browse option and second is sub-region for showing images. Create a Page Item on …