View previous topic :: View next topic
|
Author |
Message |
udaynimje
New User
Joined: 09 Oct 2006 Posts: 6 Location: pume maharashtra India
|
|
|
|
while creating a table in ispf caps lock was off and i entered some values(* so all records in table are in lower case.)
when i am trying to update table with caps on records are unidentified sql code is -100
i didn't know that db2 is case sensitive. now how to convert all records in table in upper case.
i want to know how to convert all records either in upper case or lower case. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
How many records?
Where are these records located? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you unload the table(s) you can translate easily in batch. After translation, reload the data. |
|
Back to top |
|
|
udaynimje
New User
Joined: 09 Oct 2006 Posts: 6 Location: pume maharashtra India
|
|
|
|
actually i am completing my training in an institute. table is very small 5 attributes and around 60 rows out of which 20 records are in lower case.
Unloading and loading is good option but can we do it using any sql query. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If any part of the "key" data is lower case, you will be ahead to "fix" the data outside of the database. Depending on the table definition, you may not be able to fix in place.
Good luck |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
You say you didn't know DB2 was case sensitive.
For any language, you must distinguish between how it processes its commands and variable or field names (or "columns" in DB2), from how it handles its (i.e., your) data.
It may be case insensitive for the former, but you'd surely want it to store your data in upper or lower as you input it. |
|
Back to top |
|
|
|