What is the best way to convert a row with columns to a list with rows? In the list, I need one column with the old column name and one column with the old column value.
For Example:
Current:
PersonId | PersonFirstName | PersonLastName |
Need:
ColumnName | ColumnValue
Hope this makes sense. Thanks for any help.开发者_C百科
You need to use Pivot clause. You can see this question for some examples.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论