Parameterized queries with aggregate functions with an array of column names #1112
              
                Unanswered
              
          
                  
                    
                      vbackeberg
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to wrap my column names with aggregate functions like SUM().
I don't know what the column names are and how many. They are just an array of strings.
I have tried to parse the column names like below, but this will turn the wrapped variable into one big parameter.
I think what is needed here is a way to "spread" the array into the query before the whole variable is parameterized.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions