SQL statement for changing the varchar2 field (with data) of a table to the clob Field

Source: Internet
Author: User

Create Table yn_test_clob (ID int, bb_1 varchar2 (255 ))

Insert into yn_test_clob values (1, 'iihero ')

Select * From yn_test_clob

Alter table yn_test_clob rename column bb_1 to bbb_1

Select * From yn_test_clob

Alter table yn_test_clob add bb_1 clob

Update yn_test_clob set bb_1 = bbb_1

Select * From yn_test_clob

Alter table yn_test_clob drop column bbb_1

Select * From yn_test_clob

 

Reference: how to change the varchar2 field to a clob field in Oracle

Http://topic.csdn.net/u/20070620/14/1084030e-eccc-49f4-a484-574c07f176a8.html

How to modify the table name http://www.itpub.net/thread-242741-1-1.html with SQL

Http://www.iteye.com/problems/23956 for clob processing large string problems in Java

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.