Oracle8i Application Developer's Guide - Large Objects (LOBs) Release 2 (8.1.6) Part Number A76940-01 |
|
LOB Programmatic Environments, 6 of 9
You can make changes to an entire internal LOB, or to pieces of the beginning, middle or end of a LOB by using embedded SQL. You can access both internal and external LOB
s for read purposes, and you can write to internal LOB
s.
Embedded SQL statements allow you to access data stored in BLOB
s, CLOB
s, NCLOB
s, and BFILE
s. These statements are listed in the tables below, and are discussed in greater detail later in the chapter.
See Also:
Pro*C/C++ Precompiler Programmer's Guide for detailed documentation, including syntax, host variables, host variable types and example code. |
Unlike locators in PL/SQL, locators in Pro*C/C++ are mapped to locator pointers which are then used to refer to the LOB or BFILE value.
To successfully complete an embedded SQL LOB statement you must do the following:
Examples provided with each embedded SQL LOB statement are illustrated in:
You will also be able to access these example scripts from your Oracle8i software CD /rdbams/demo directory in a future release.
Pro*C statements that operate on BLOBs, CLOBs, and NCLOBs are listed below:
Statement | Description |
---|---|
|
Creates a temporary LOB. |
|
Sees if a LOB locator refers to a temporary LOB. |
|
Frees a temporary LOB. |
Statement | Description |
---|---|
|
Closes all open |
|
Checks whether a |
|
Returns the directory alias and/or filename of a |
Statement | Description |
---|---|
|
Assigns one |
|
Sets the directory alias and filename of a |
Statement | Description |
---|---|
|
Opens a LOB or BFILE. |
|
Sees if a LOB or BFILE is open. |
|
Closes a LOB or BFILE. |
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|