Skip to content

Instantly share code, notes, and snippets.

@ellor1138
Last active September 8, 2022 10:36
Show Gist options
  • Save ellor1138/6679c82d9cd2af0157e1 to your computer and use it in GitHub Desktop.
Save ellor1138/6679c82d9cd2af0157e1 to your computer and use it in GitHub Desktop.
Calculate total from array
// Sum a Query Column in ColdFusion
total = ArraySum( ListToArray( ValueList( query.col ) ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment