Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to create DB2 Table from XLS File

New Here ,
Jan 19, 2011 Jan 19, 2011

I am trying to create a new table in DB2 from an existing excel file.  I used the <cfspreadsheet> to organize the data into a query object(should I use the query object or just a spreadsheet object).  I am not sure how to load the data.  Should I use <cfquery> to create a new table and then <cfloop> the query object(from the spreadsheet) to insert(sql statement) the data into the table.  I am two weeks into learning CF so explain things to me like I am a 2yr old.  Here is what I have coded so far.

f2.png

707
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2011 Jan 19, 2011

My suggestion is to back away from your code and think about what you are doing.  Creating a new table everytime someone uploads a file isn't likely to result in useable data.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 19, 2011 Jan 19, 2011
LATEST

This is just a project.  It is not going to be used in a real setting.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources