ICode9

精准搜索请尝试: 精确搜索
  • sql server:Pivot data with date in the columns2022-07-07 12:35:14

      -- --SQL - Pivot data with date in the columns --Dynamic sql 动态 geovindu DECLARE @sql nvarchar(max) DECLARE @s nvarchar(max) SELECT @s=STUFF(( SELECT DISTINCT ',['+CAST(CAST(RecordAddDate as DATE) as nvarchar)+']' FROM dbo

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有