1. How to Deal with clob in MySQL and Oracle databases. BLOB data type (1) cannot be connected to clob in the database. The Blob type is as follows:
MySQL: clob corresponds to text and blob
In DB2/Oracle: clob corresponds to clob and blob(2)
Ing of SQL CLOB in JavaTM programming language. SQLCLOB is a built-in type that stores CharacterLargeObject as a column in a row of a database table. By default, the driver uses SQLlocator (CLOB) to implement the Clob object, which means that the
Method One:
In Oracle, fields for LOB (Large object, large objects) types are now used more and more. Because of this type of field, large capacity (up to 4GB of data), and a table can have more than one of these types of fields, is flexible,
method One:
In Oracle, fields for LOB (Large object, large objects) types are now used more and more. Because of this type of field, large capacity (up to 4GB of data), and a table can have more than one of these types of fields, is flexible,
From csdn
========================================================
In Oracle, four lobs types are available: blob, clob, bfile, and nclob.
The following is a brief introduction to the lob data type.
L BLOB: Binary lob, Which is binary data. It can
In POJO, a large String object can be declared as a java. lang. String or java. SQL. Clob type. When a program loads Clob data from a database, it only loads a logical pointer of Clob data. You must use the Clob. getCaracterStream () method to
Java cannot directly insert Clob Data Types in Oracle, but it can write or read clob data in the form of a stream. The online code is not too much, I have summarized and summarized the online materials. For details, refer to the Code:
Write clob
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.