摘要:
用CTE递归 ;with f as ( select * from tab where id=1 union all select a.* from tab as a inner join f as b on a.pid=b.id ) select * from f 用CTE递归 ;with f a 阅读全文
posted @ 2017-05-03 18:19
(john_zhang)
阅读(3121)
评论(0)
推荐(1)
摘要:
报错:Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "SQL_L 出错原因: 两个跨库的表的collation不一致 解决办法:在出错的任意列名后面加上collate chinese_prc_ci_as 例 阅读全文
posted @ 2017-05-03 18:14
(john_zhang)
阅读(10731)
评论(0)
推荐(0)
摘要:
出处:http://www.cnblogs.com/doosmile/archive/2012/03/16/2400646.html --用openrowset连接远程SQL或插入数据 --如果只是临时访问,可以直接用openrowset--查询示例select * from openrowset( 阅读全文
posted @ 2017-05-03 18:12
(john_zhang)
阅读(1936)
评论(0)
推荐(0)

浙公网安备 33010602011771号