主页 > 创业  > 

高频SQL50题(基础版)_626.换座位

高频SQL50题(基础版)_626.换座位

高频 SQL 50 题(基础版)_626. 换座位

select (case when mod(id,2)!=0 AND counts != id then id+1 when mod(id,2)!=0 AND counts = id then id else id -1 end) as id, student from seat, (select count(*) as counts from seat) as seat_counts order by id asc;

标签:

高频SQL50题(基础版)_626.换座位由讯客互联创业栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“高频SQL50题(基础版)_626.换座位