oracle与sqlsever的区别
区别一
oracle字符之间连接用||
sqlserver字符之间连接用+
区别二
oracle字段重命名用as
sqlserver字段重命名用=
区别三
oracle判空用nvl
sqlserver判空用isnull
区别四
oracle多列合并成一列
select
assid,
LISTAGG(name,' ') within group (order by name ) as assconbilename
from temp_gl_fzhs_view
group by assid
sqlsever多列合并成一列
SELECT
assid,
assconbilename((select ','+name FROM temp_gl_fzhs_view WHERE assid = fz.assid for xml path('')),1,1,'')
FROM temp_gl_fzhs_view fz
group by assid
文章来源地址https://www.toymoban.com/news/detail-757757.html
文章来源:https://www.toymoban.com/news/detail-757757.html
到了这里,关于oracle与sqlsever的区别的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!