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

Insert a array of arrays into a ms sql

Enthusiast ,
Jan 27, 2009 Jan 27, 2009
What is the best way to insert a array of arrays into a ms sql table using coldfusion. I suspect it will be some nice cf loop thing to do this in about 5 lines of code 🙂
TOPICS
Database access
850
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 27, 2009 Jan 27, 2009
It would take a bit more than 5 lines, but you want to use nested loops. Hopefully the outer array is one dimensional.
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 27, 2009 Jan 27, 2009
LATEST
> What is the best way to insert a array of arrays into a ms sql table using coldfusion. I suspect it will be some nice cf loop thing to do this in about 5 lines of code :)

You suspect right.

How about you try it, and come back to us if you encounter any problems.

An array of arrays is an interesting data structure to have to want to be
inserting the whole lot into one table. How did they data get into an
array of arrays?

--
Adam
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