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会将查询的值对应的列在一个字
相关文章
相关标签/搜索