Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Datatype

Status
Not open for further replies.

gotluru

Programmer
Oct 16, 2000
10
US
Hi,

Can I change Datatype Varchar2 to Clob by using Alter Table Command?

Thanks in Advance..
Prasad
 
Hi there
Yes you can alter the data type using alter table but i'm not sure whether DB2 can convert varchar2 to Clobs ?

Hope this helps!

ALTER TABLE table-name ALTER COLUMN column-name SET DATA TYPE type size.

 
IBM documentation states you can CAST between VarChar(2) and CLOB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top