| Oracle - CLOB Example |
Clob Example Source :
Short example of using PL/SQL and CLOBs.
| Source : | CLOB Example |
| Author : | Jason Vogel |
| References Links : | http://www.poboxes.com/jasonvogel |
| Source | set serveroutput on; /* INSERT INTO AHS_LOB_DATA -- Create sample record VALUES (1, 'abcde'); */ DECLARE clob_locator CLOB; SELECT clob_data INTO clob_locator FROM AHS_LOB_DATA WHERE lob_id = 1; DBMS_OUTPUT.PUT_LINE('CLOB Size: '||DBMS_LOB.GETLENGTH(clob_locator)); -- Read LOB field contents exception |
|
Copyright © : 1997 - 2005 |