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

cfquery.columnlist order

New Here ,
Mar 25, 2008 Mar 25, 2008
is there a way to have coldfusion return the results from a query in something other than alphabetical order? (like the order the items were selected perhaps? I have a JSON serializer and it runs through the query alphabetically.... I have the query results autobuilding a table but it always puts the columns alphabetically. Is there an option to return the columns in the order the sql is written
1.9K
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

correct answers 1 Correct answer

Valorous Hero , Mar 26, 2008 Mar 26, 2008
Use the GetMetaData(yourQuery) function to return an array of column information. Then construct the desired column list from the returned array.
Translate
Valorous Hero ,
Mar 26, 2008 Mar 26, 2008
LATEST
Use the GetMetaData(yourQuery) function to return an array of column information. Then construct the desired column list from the returned array.
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