摘要: 1 print '1' + 1 --2 2 3 print 1 + 'df' --在将 varchar 值 'df' 转换成数据类型 int 时失败。 4 5 print '11' + '11' --1111 6 7 select 'daaa' + 'dddd' ... 阅读全文
posted @ 2019-04-18 19:52 vvull 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 点击收看 阅读全文
posted @ 2019-04-18 12:42 vvull 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 限制条件:使用 UNION、INTERSECT 或 EXCEPT 运算符合并的所有查询必须在其目标列表中有相同数目的表达式。 阅读全文
posted @ 2019-04-18 12:30 vvull 阅读(176) 评论(0) 推荐(0) 编辑
摘要: cross join(没有on)inner join(一般用于交集)outer join(你懂得)后面两个 on 1=1 效果同cross join 阅读全文
posted @ 2019-04-18 12:19 vvull 阅读(264) 评论(0) 推荐(0) 编辑
摘要: row_number() over() 1、2、3、4、5、6、7 rank() over() 1、2、2、4、5、5、7 dense_rank() over() 1、2、2、3、3、4、5 ntile(3) over() 1、1、1、2、2、3、3 阅读全文
posted @ 2019-04-18 12:04 vvull 阅读(263) 评论(0) 推荐(0) 编辑