How to output table results by using cfoutput group by date?

前端 未结 1 842
死守一世寂寞
死守一世寂寞 2020-12-12 01:22

I have a query that get the all the employees count in a table:

emp_namelast | emp_namefirst | employeetotal | year_cse1
------------------------------------         


        
相关标签:
1条回答
  • 2020-12-12 01:44

    You are on the right track but are missing a detail. The group attribute works like this:

    <cfoutput query="somequery" group="somefield">
    grouped data goes here
    
    <cfoutput>
    ungrouped data goes here
    </cfoutput>
    grouped data can go here as well
    </cfoutput>
    

    In your code, you are not outputting any grouped data, and you are missing the extra cfoutput tags for the ungrouped data.

    0 讨论(0)
提交回复
热议问题