2 Replies Last post: Feb 1, 2010 8:01 AM by David Shuttleworth  
Singh   4 posts since
Jan 21, 2010
Currently Being Moderated

Jan 26, 2010 6:03 PM

Converting whole table into UPPER CASE

Can anyone tell me how to convert whole table into UPPER CASE?  i had this requirement,  i know to do this every column wise in each table.  I have this requirement for many tables. 

 

Thanks.

Gary   71 posts since
Feb 26, 2008
Currently Being Moderated
1. Jan 27, 2010 6:30 AM in response to: Singh
Re: Converting whole table into UPPER CASE

unless some-one can come up with a flashy way, you will need to do a CTAS selecting UPPER(fieldname) for each field

David Shuttleworth   181 posts since
May 14, 2008
Currently Being Moderated
2. Feb 1, 2010 8:01 AM in response to: Gary
Re: Converting whole table into UPPER CASE

If there are many tables to do this for, it may be worth creating an SQL query that will generate the CTAS statements with UPPER(colname) for Character columns from the appropriate system catalog tables.

 

D.

More Like This

  • Retrieving data ...