DB2®Clob Class
Represents the CLOB Db2® data type.
Encapsulates the string .NET data type.
- Namespace:
IBM.Data.DB2Types- Assembly:
IBM.Data.DB2(inIBM.Data.DB2.dll)
Syntax
[Visual Basic]
Public Structure DB2Clob
[C#]
public struct DB2Clob
[C++]
public value class DB2Clob
Example
[C#] The following example demonstrates how to retreive a single CLOB column value from a table.
[C#]
public static string getParam(DB2Connection conn)
{
string mySelectQuery = "SELECT * FROM EMP_RESUME";
DB2Command myCommand = new DB2Command(mySelectQuery, conn);
DB2DataReader reader = myCommand.ExecuteReader();
if (reader.Read())
{
DB2Clob selectValue = reader.GetDB2Clob(2);
if (!selectValue.IsNull) { return selectValue.ToString(); }
}
return "NULL";
}
Thread safety
Any public static (Shared in
Visual Basic) members of this type are safe for multithreaded operations.
Any instance members are not guaranteed to be thread safe.