×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

IBM DB2 On Cloud - How is table column name formatted?

IBM DB2 On Cloud - How is table column name formatted?

IBM DB2 On Cloud - How is table column name formatted?

(OP)
I have an IBM DB2 Cloud account and I have added DB2 from the catalog. I have a schema and I was able to create a table name.
I uploaded the data from a csv which has 1 row as header with column names.

I was able to successfully upload the data into the table, but for some column names it added underscore replacing space, where as in some column names it did not replace the space or special character.

Here are the sample column names where it updated column names with underscore and columns where it did not replace and loaded name as it is in the csv file.


Column in CSV File
==================================
School ID
Adequate Yearly Progress Made?
CPS Performance Policy Status
9th Grade EXPLORE (2009)
9th Grade EXPLORE (2010)
Elementary, Middle, or High School
====================================

After data loaded to DB2 - Column name
=======================================
School_ID
Adequate_Yearly_Progress_Made_
CPS_Performance_Policy_Status
9th Grade EXPLORE (2009)
9th Grade EXPLORE (2010)
Elementary, Middle, or High School
=======================================

If you compare the column names in some case the special characters and spaces are replaced with underscore and in some cases the column name is same as csv file.

Why this behavior?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close