Leetcode刷題以及CSDN中sql經常使用習題練習有感

知識點補充: 交換同一列兩個值A,B的位置:update tb_name set col_name = (if col_name = A, B, A) 或者 update tb_name set col_name = (case when col_name = A then B else A end) union 組合了多個select語句結果,不包含重複值,union會將查詢的值對應的列在一個字
相關文章
相關標籤/搜索