Alibabacloud.com offers a wide variety of articles about oracle convert long to clob in select, easily find your oracle convert long to clob in select information here online.
Introduction to the long raw blob clob type in Oracle, blobclob
Note:
RAW: unprocessed type, which can store binary data or byte charactersLONG: variable-length string data. The maximum length is 2 GB. LONG has the VARCHAR2 column feature. It can
DescriptionRaw: Unprocessed type, can store binary data or byte charactersLong: variable long string data, longest 2g,long has VARCHAR2 column attributes, can store long text in one table up to a long column "not recommended"Long RAW: variable Long
In Oracle, table columns are changed from VARCHAR2 to CLOB and varchar2clob.Scenario
The columns in the original table are defined as the VARCHAR2 type. As we all know, the maximum length of the VARCHAR2 type is 4000. If you want to convert this
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
ScenarioThe columns in the original table are defined as VARCHAR2 types, and it is well known that the maximum support length for the VARCHAR2 type is 4000. Assume that because of business needs. To convert this column to the CLOB type, it is not
In Oracle, table columns are changed from VARCHAR2 type to CLOB type.Scenario
The columns in the original table are defined as the VARCHAR2 type. As we all know, the maximum length of the VARCHAR2 type is 4000. If you want to convert this column to
ScenarioThe columns in the original table are defined as VARCHAR2 types, and it is well known that the maximum support length for the VARCHAR2 type is 4000. If you want to convert this column to a CLOB type due to business needs, it is not feasible
1. Insert the Clob field with an INSERT statement, and if the insert is more than 4000, the string is too long to be handled by first declaring the inserted fields as CLOB type, as follows:Insertsql = "DECLARE email_text clob: = '%s '; Begin INSERT
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.